Properties: fixedRotation , icon , offset , repeat. Properties: clickable , draggable , editable , fillColor , fillOpacity , geodesic , map , paths , strokeColor , strokeOpacity , strokePosition , strokeWeight , visible , zIndex. Properties: edge , path , vertex. Properties: bounds , clickable , draggable , editable , fillColor , fillOpacity , map , strokeColor , strokeOpacity , strokePosition , strokeWeight , visible , zIndex. Properties: center , clickable , draggable , editable , fillColor , fillOpacity , map , radius , strokeColor , strokeOpacity , strokePosition , strokeWeight , visible , zIndex.
Events: addfeature , click , contextmenu , dblclick , mousedown , mouseout , mouseover , mouseup , removefeature , removeproperty , rightclick , setgeometry , setproperty. Properties: controlPosition , controls , drawingMode , featureFactory , map , style. Properties: idPropertyName. Properties: animation , clickable , cursor , draggable , editable , fillColor , fillOpacity , icon , icons , label , opacity , shape , strokeColor , strokeOpacity , strokeWeight , title , visible , zIndex.
Events: removeproperty , setgeometry , setproperty. Properties: geometry , id , properties. Methods: forEachLatLng , getType. Methods: forEachLatLng , get , getType. Properties: feature. Properties: feature , newGeometry , oldGeometry. Properties: feature , name , newValue , oldValue. Properties: feature , name , oldValue. Properties: clickable , map , preserveViewport , screenOverlays , suppressInfoWindows , url , zIndex.
Properties: author , description , hasScreenOverlays , name , snippet. Properties: featureData , latLng , pixelOffset. Properties: author , description , id , infoWindowHtml , name , snippet. Properties: email , name , uri. Properties: alt , maxZoom , minZoom , name , projection , radius , tileSize. Methods: getTile , releaseTile. Methods: getOpacity , getTile , releaseTile , setOpacity. Events: tilesloaded. Events: click , dblclick. Properties: clickable , map , opacity.
Properties: alt , maxZoom , minZoom , name. Events: circlecomplete , markercomplete , overlaycomplete , polygoncomplete , polylinecomplete , rectanglecomplete.
Properties: drawingModes , position. Properties: overlay , type. Properties: data , dissipating , gradient , map , maxIntensity , opacity , radius. Properties: location , weight. Properties: status , zoom. Properties: controls. Draw on the map. WebGL Features. Display data. Local Context Library Beta. More Guides. Policies and Terms. Other APIs. Overview Every application will have a slightly different migration process; however, there are some steps that are common to all projects: Get a new key.
If you are still using a v2 key, be sure to get your new API key before you begin your migration. Update your API Bootstrap. The amount of change required will depend a lot on your application. Common changes include: Always reference the google. Most objects have also been renamed as part of this process. For example, instead of GMap2 , you will now load google. Remove any references to obsolete methods. Either replace this functionality with third party utility libraries, or remove these references from your code.
Optional Add libraries to your code. Many features have been externalized into utility libraries so that each app will only have to load the parts of the API that will be used. Optional Configure your project to use the v3 externs. The v3 externs can be used to help validate your code with the Closure Compiler , or to trigger autocomplete in your IDE. Learn more about Advanced Compilation and Externs. Test and iterate. At this point you will still have some work to do, but the good news is that you will be well on your way to your new v3 maps application!
Some of the changes in the v3 API include: A streamlined core library. Many of the supplementary functions have been moved into libraries , helping to reduce the load and parsing times for the Core API which lets your map load quickly on any device. Improved performance of several features, such as polygon rendering and marker placement.
A new approach to client-side usage limits to better accommodate shared addresses used by mobile proxies and corporate firewalls. Added support for several modern browsers and mobile browsers. Support for Internet Explorer 6 has been removed. Today, many excellent JavaScript libraries exist that provide similar functionality, such as Closure or jQuery.
Custom Street View panoramas with your own photos, allowing you to share panoramas of ski slopes, houses for sale or other interesting places. Styled Maps customizations that allows you to change the display of elements on the base map to match your unique visual style. Support for several new services, such as the ElevationService and Distance Matrix. An improved directions services provides alternative routes, route optimization approximate solutions to the traveling salesperson problem , bicycling directions with bicycling layer , transit directions, and draggable directions.
An updated Geocoding format that provides more accurate type information than the accuracy value from the Geocoding API v2. If you have a v2 key, you must upgrade to a v3 key as a part of the migration, which will: Allow you to monitor your API usage in the Google Cloud Console. Allow you to purchase additional quota when required.
Give Google a way to contact you about your application. Update the key parameter with your new v3 key. Remove the v parameter to request the latest released version or change its value accordingly to the v3 versioning scheme. Optional Replace the hl parameter with language and preserve its value.
Optional Add a libraries parameter to load optional libraries. Map GLatLng google. LatLng GInfoWindow google. InfoWindow GMapOptions google. PolygonOptions or google. Map document.
LatLng LatLng 1. LatLngBounds new google. Add a Google Map to your site without code or quota limits. Customize maps with your own content and imagery. Up-to-date information about millions of locations. Maps Static API. Simple, embeddable map image with minimal code. Real-world imagery and panoramas. Directions API.
Directions between multiple locations. Asked 8 years, 5 months ago. Active 8 years, 5 months ago. Viewed 2k times. LatLng Map document. If so, how? Thanks for your help.
Is that supposed to be "read"? Those numbers are not valid latitude and longitudes at lease in Google Maps standard coordinate system , are they just random numbers or do they need to be converted to WGS84?
Yes, read.
0コメント