Directory

← Back

GoogleMapWidget

A map addon based on the Google Maps API. Wraps a subset of the API, but covers most of the generally used features.

Author

Rating

Popularity

<100

ATTENTION: This add-on is not compatible with Vaadin 7 and will no longer be maintained. You should consider switching to the newer implementation, available here: https://vaadin.com/directory#addon/googlemaps-add-on:vaadin

A Vaadin addon that allows you to use Google maps in your application's UI. The component supports a subset of the maps API (eg. click and move events, lazy loaded markers with custom icons, tabbed info windows on the markers, containing other Vaadin components, and polylines and polygons), but it should cover most of the normal use cases.

This addon contains features sponsored by Propentus Ltd.

Sample code

// Create a new map instance centered on the IT Mill offices
GoogleMap googleMap = new GoogleMap(getApplication(), new Point2D.Double(22.3, 60.4522), 8);
googleMap.setWidth("640px");
googleMap.setHeight("480px");\n

// Create a marker at the IT Mill offices
googleMap.addMarker(new BasicMarker(1L, new Point2D.Double(22.3, 60.4522), "Test marker"));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

API changes:

  • Added the reportMapBounds() method which will result in a immediate MapMoveEvent when the browser renders the component.

Fixes and updates:

  • Fixed a bug that removed polygons and polylines when markers were added.
  • Fixed a bug that crashed the browser widget if single or double quotes were used in the marker titles.
  • BasicMarkerSource now fully uses StringBuilder when creating marker JSON.
  • Fixed a bug in the client side widget that prevented hiding markers, and as a side effect redrew all markers on every render. This improves client side performance quite a lot.
Released
2010-08-24
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.2+
Browser
Internet Explorer
Internet Explorer
Internet Explorer
Firefox
Opera
Safari

GoogleMapWidget - Vaadin Add-on Directory

A map addon based on the Google Maps API. Wraps a subset of the API, but covers most of the generally used features. GoogleMapWidget - Vaadin Add-on Directory
ATTENTION: This add-on is not compatible with Vaadin 7 and will no longer be maintained. You should consider switching to the newer implementation, available here: https://vaadin.com/directory#addon/googlemaps-add-on:vaadin A Vaadin addon that allows you to use Google maps in your application's UI. The component supports a subset of the maps API (eg. click and move events, lazy loaded markers with custom icons, tabbed info windows on the markers, containing other Vaadin components, and polylines and polygons), but it should cover most of the normal use cases. This addon contains features sponsored by Propentus Ltd.
Vaadin 7 compatible new version

GoogleMapWidget version 0.9
null

GoogleMapWidget version 0.9.2
Petri Heinonen: + Added methods for removing a single marker and all markers + Added handler to catch marker move events that fires when a marker has been dragged to a new location. The coordinates are also available at server side from the Marker object. (feature sponsored by Propentus Oy) + Added handler to catch marker click events, works only if marker has information window content for now.

GoogleMapWidget version 0.9.3
Fixed a compatability issue with Java 1.5.

GoogleMapWidget version 0.9.4
No functional changes, just compiled for Java 1.5. Also tested with IE6.

GoogleMapWidget version 0.9.7
Several improvements and fixes, including - Google API key can now be given in the constructor of the component (feature sponsored by Propentus Ltd.) - Marker JSON handling is now more resilient with different character sets. - Marker draggability toggling works properly. - The map accepts a new marker with a ID that was used and removed previously. etc. Changes in this version by Petri Heinonen, Johan Ånäs and Henri Muurimaa.

GoogleMapWidget version 0.9.8
Removed the easter egg.

GoogleMapWidget version 0.9.10
- Fixed a bug that prevented changing a icon of an existing marker - Added Marker.setIconAnchor() - Added GoogleMap.getClientLogLevel() - Refactored the test app

GoogleMapWidget version 0.9.11
- Fixed a but that prevented removal of overlays without refreshing the browser. - Added a getOverlays() method to the serverside API

GoogleMapWidget version 0.9.12
Fixed a problem with custom marker icons when no icon marker position was specified.

GoogleMapWidget version 0.9.13
API changes: - Added the reportMapBounds() method which will result in a immediate MapMoveEvent when the browser renders the component. Fixes and updates: - Fixed a bug that removed polygons and polylines when markers were added. - Fixed a bug that crashed the browser widget if single or double quotes were used in the marker titles. - BasicMarkerSource now fully uses StringBuilder when creating marker JSON. - Fixed a bug in the client side widget that prevented hiding markers, and as a side effect redrew all markers on every render. This improves client side performance quite a lot.

Online