Directory

← Back

OpenLayers Wrapper

Build map solutions with elegant Vaadin approach. A server side Java API to create complex GIS solutions or simple map views.

Author

Rating

Popularity

<100

Add-on contains server side wrapper component for OpenLayers Map. It also provides API's for different types of layers.

The integration is built on its own GWT wrappers around OpenLayers javascript API. The GWT part is designed so that the addon can also be used in plain GWT applications without Vaadin.

The add-on is evolving quite fast, thanks to numerous contributions. Some of the most essential features listed below:

  • Multiple base layers (E.g. WMS, TMS, Google maps, VirtualEarth (aka Bing), OpenStreetMap)
  • VectorLayer (Points, Areas, Lines, drawing, editing and styling either explicitly or via StyleMaps)
  • Popups
  • MarkerLayer (deprecated, users should start using VectorLayer instead. Also with plain OpenLayers)

The client side implementation is based on GWT's JavaScript overlays. Extending the API to any of OpenLayers features should be rather straightforward. Contributions, feature requests and bug reports are welcome via the Google code project page. Help or support via Vaadin forums or Pro support.

Sample code

        final OpenLayersMap map = new OpenLayersMap();
        OpenStreetMapLayer osm = new OpenStreetMapLayer();
        GoogleStreetMapLayer googleStreets = new GoogleStreetMapLayer();
        map.addLayer(osm);
        map.addLayer(googleStreets);
        map.setCenter(22.30083, 60.452541);
        mainWindow.addComponent(map);

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

  • LabelVector for easier usage of text on vector layer
  • Added possibility to define context functions (js) for styling. Opens lots of possibilities like polyline width can now be styled relative to "real world".
Released
2012-04-25
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.0+
Vaadin 6.3+ in 0.1.0
Vaadin 6.5+ in 0.4.0
Vaadin 6.7+ in 1.2.0
Browser
Internet Explorer
Internet Explorer
Internet Explorer
Firefox
Opera
Safari
Google Chrome
Internet Explorer
iOS Browser
Android Browser

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
The channel for finding, promoting, and distributing Vaadin add-ons.
Online