Hello there,
I have an issue with the response of the method isHidden() of the
object GStreetviewPanorama: it returns false after the object has
been removed (through its remove() method) if the object was visible
before.
I strongly believe that isHidden should return true after a remove
whatever the visiblity status of object was before.
The function below allows to reproduce the case (provide a div as
"elem" input parameter in order to display the panorama)
result1 is false: correct
result2 is true: correct
result3 is false: correct
result4 is false: INCORRECT. It should be true after the preceding
remove() whatever the previous visibility status was before (it was
visible due to show() in that case)
Do you agree with my statement of incorrectness for isHidden() in that
case?
Thanks in advance for the feedback
didier
testGooglePanoaramaHideShowRemove : function (elem) {
// Paris (Louvre)
var lat= 48.860056;
var lng= 2.335582;
//
var paris = new GLatLng(lat,lng);
var client = new GStreetviewClient();
var callback = function (latlng) {
var options = {latlng : latlng};
var streetview = new GStreetviewPanorama(elem,options);
var end = function(){
var result1 = streetview.isHidden();
streetview.hide();
var result2 = streetview.isHidden();
streetview.show();
var result3 = streetview.isHidden();
streetview.remove();
var result4 = streetview.isHidden();
}
setTimeout(end,7000);
};
client.getNearestPanoramaLatLng(paris,callback);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---