This plugin helps you to control Google Maps Android SDK v2 and Google Maps SDK for iOS from your JavaScript code. This plugin works with Apache Cordova.
//Define the location
var GOOGLE = new plugin.google.maps.LatLng(37.422858, -122.085065);
//Initialize a map
var map = plugin.google.maps.Map.getMap();
map.addEventListener(plugin.google.maps.event.MAP_READY, function(map) {
// The map is initialized, then show a map dialog
map.showDialog();
// Add a marker onto the map
map.addMarker({
'position': GOOGLE,
'title': ["Hello Google Map", "for", "Cordova!"].join("\n"),
'snippet': "This plugin is awesome!"
}, function(marker) {
// Move camera position
map.animateCamera({
'target': GOOGLE,
'zoom': 15
}, function() {
//Show the infoWindow assigned with the marker
marker.showInfoWindow();
});
});
});
###Example You can try the example of this plugin. SimpleMap_v1.0.2.apk
###Documentation
- Installation
- Automatic Installation
- Tutorials
- Map
- Marker
- Circle
- Polyline
- Polygon
- Tile Overlay
- Ground Overlay
- Kml Overlay
- Geocode
- Geocoding
- Reverse geocoding
- LatLng
- Create a LatLng object
- LatLng Class Reference
- CameraPosition
- CameraPosition Class Reference
- Location
- Location Class Reference