After upgrade my complete code i had here the most currents tips to upgrade your code. Add other if you like.
Use : new google.maps.
in place of 开发者_如何学JAVAG
...
GLatLngBounds()
-->google.maps.LatLngBounds()
GlatLng
-->google.maps.LatLng
GPoint
-->google.maps.Point
Event.addListener
-->google.maps.event.addListener
map.getInfoWindow().getPoint
-->google.maps.getPosition()
markers[i].getPoint()
-->markers[i].getPosition()
closeInfoWindow()
-->map.InforWindow.Close();
map.getBoundsZoomLevel(bounds)
-->map.fitBounds(bounds)
markers[i].setImage
-->.setIcon
map.InfoWindow.close()
--> create a function to close- find in maps for objects -->
$('#id')[0]
or$('#id').get(0)
ordocument.getElementbyId
Happy coding.
精彩评论