neojavan / gmaps-samples

Automatically exported from code.google.com/p/gmaps-samples
1 stars 0 forks source link

Bug in httpstreetview_layer.html #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
http://gmaps-
samples.googlecode.com/svn/trunk/streetview/streetview_layer.html

What steps will reproduce the problem?
1. Click on the marker to open info window with street view
2. Change the direction and see the marker rotate
3. Move the street view a block using the arrow key, notice the marker 
does not move.

What is the expected output? What do you see instead?
Marker should move, but it stays put.

What version of the product are you using? On what operating system?
Latest version. Tried on Windows XP and SLES10.

Please provide any additional information below.
Change log below:
-   GEvent.addListener(panorama, "newpano", onNewLocation);
+   GEvent.addListener(panorama, "initialized", onNewLocation);

- function onNewLocation(lat, lng) {
-   var latlng = new GLatLng(lat, lng);
-   marker.setLatLng(latlng);
+ function onNewLocation(location) {
+  marker.setLatLng(location.latlng);
}

Original issue reported on code.google.com by Thomas.L...@gmail.com on 26 Jul 2008 at 2:42