Enables Google Maps in Vaadin 7 projects via JavaScript API 3!
Get it from Vaadin Directory.
Check out the demo @ http://tapio.app.fi/googlemaps/.
If you don't use dependency management (i.e. Maven or Ivy) you'll have to manually add GWT-Maps-V3-Api
and GWT-AjaxLoader
jars to your project. Without them you'll get errors like
[ERROR] Unable to find 'com/google/gwt/maps/Maps.gwt.xml' on your classpath;`
while trying to compile the widgetset.
In order to use Google Maps API, you'll need to get an API key from Google Developers Console. The key is not normally needed when developing in localhost.
- Setting center & zoom.
- Limiting of center, bounding box and zoom.
- Setting visible map controls.
- Markers with custom captions and icons, togglable dragging, drop animation and optimized rendering.
- Info windows with HTML content, marker anchoring and z-index.
- Polygon and polyline overlays.
- KML layers from external URLs.
- Forcing the localization of the map.
- Toggling dragging of the map with mouse, keyboard shortcuts and scroll wheel zoom.
- Map move
- Map click
- Marker drag
- Marker click
- Info window close