Method Name Changes-GoogleMaps/API/doc/ver2_Method_Name_Changes-N☆E 学習帳

[ リロード ]   [ ソース ]  [ トップ | 一覧 | 単語検索 | 最新 | バックアップ | ヘルプ ]

Counter: 3726, today: 3, yesterday: 1

Method Name Changes

2006.4.3にリリースされたGoogleMaps API version 2

http://www.google.com/apis/maps/docu­mentation/upgrade.html
Google Maps API Version 2 Upgrade Guide にあった Method Name Changes をもってきました。

Many of the methods in the GMap interface have been replaced with new methods that use the GLatLng class and are more consistent with our new, extensible GMap2 interface. You can update your constructor calls, method invocations, and event handler based on the table below:

Type version 1 version 2
constructor GMap(container, mapTypes?, width?, height?) GMap2(container, opts?)
method GMap.getCenterLatLng() GMap2.getCenter()
method GMap.getBoundsLatLng() GMap2.getBounds()
method GMap.getSpanLatLng() GMap2.getBounds()
method GMap.getZoomLevel() GMap2.getZoom()
method GMap.centerAtLatLng(center) GMap2.setCenter(center, zoom?, type?)
method GMap.centerAndZoom(center, zoom) GMap2.setCenter(center, zoom?, type?)
method GMap.recenterOrPanToLatLng(center) GMap2.panTo(center)
method GMap.zoomTo(level) GMap2.setZoom(level)
method GMap.openInfoWindow(point, node, offset?, onopen?, onclose?) GMap2.openInfoWindow(point, node, opts?)
method GMap.openInfoWindowHtml(point, html, offset?, onopen?, onclose?) GMap2.openInfoWindowHtml(point, html, opts?)
method GMap.openInfoWindowXslt(point, node, xslturi, offset? , onopen?, onclose?)
method GMap.showMapBlowup(point, node, offset?, onopen?, onclose?) GMap2.showMapBlowup(point, opts?)
event GMap.click(overlay, point) GMap2.click(overlay, point)
event GMap.zoom(oldLevel, newLevel) GMap2.zoomend(oldLevel, newLevel)
constructor GMarker(point, icon?) GMarker(point, icon?, inert?)
method GMarker.openInfoWindow(content) GMarker.openInfoWindow(content, opts?)
method GMarker.openInfoWindowHtml(content) GMarker.openInfoWindowHtml(content, opts?)
method GMarker.openInfoWindowXslt(xml, xslt)
method GMarker.showMapBlowup(zoom?, type?) GMarker.showMapBlowup(opts?)
constructor GPolyline(points, color?, weight?, opacity?) GPolyline(points, color?, weight?, opacity?)
constructor GIcon(copy?) GIcon(copy?, image?)
constructor GBounds(minx, miny, maxx, maxy) GBounds(points)
constant G_MAP_TYPE G_NORMAL_MAP
constant G_SATELLITE_TYPE G_SATELLITE_MAP
constant G_HYBRID_TYPE G_HYBRID_MAP
static method GXml.parse(xmltext) GXml.parse(xmltext)
method GXslt.transformToHtml(xmlnode, htmlnode) GXslt.transformToHtml(xmlnode, htmlnode)