I have recently added Street View to my GoogleMaps.
However, I have ran into one small problem.
I add the overlay through this:
svOverlay = new GStreetviewOverlay();
Map.addOverlay(svOverlay);
OverlayListeners.push(GEvent.addListener(Map,"click",
function(overlay,latlng) {
myPano.setLocationAndPOV(latlng);
Now my problem is that I have other overlays displayed on the map, in
particular a polygon that I had created before the svOverlay was added to
the map.
It seems as though if the user clicks on the map and there is a previously
drawn overlay where the svOverlay is located, I get an error 1259 undefined
is null or not an object in the main.js. However, clicking on my svOverlay
anywhere that doesn't have another Overlay works just fine.
Is there a way to set the z-index for an overlay so I avoid this issue?
Or is something else causing this?
Thanks,
Nathan
--
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.