开发者

Tips for Upgrading Gmaps v2 to v3 more quickly [closed]

开发者 https://www.devze.com 2023-01-19 22:24 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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) or document.getElementbyId

Happy coding.

0

精彩评论

暂无评论...
验证码 换一张
取 消