OpenLayers Wrapper
Build map solutions with elegant Vaadin approach. A server side Java API to create complex GIS solutions or simple map views.
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);
Links
- Project home
- Some of projects tests running online
- Online Demo (KML based area editor)
- OpenLayers Project
- Download snapshots
- Source code
- Issue Tracker
Compatibility
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
Initial prototype. Contains just WMS and Marker layers. Tested with Safari only, but should work on all browsers.
- Released
- 2010-04-20
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.3+
- Vaadin 6.5+ in 0.4.0
- Vaadin 6.0+ in 0.2.0
- Vaadin 6.7+ in 1.2.0
- Browser
- Internet Explorer
- Internet Explorer
- Internet Explorer
- Firefox
- Opera
- Safari
- Google Chrome
OpenLayers Wrapper - Vaadin Add-on Directory
Build map solutions with elegant Vaadin approach. A server side Java API to create complex GIS solutions or simple map views.Some of projects tests running online
Online Demo (KML based area editor)
OpenLayers Project
Download snapshots
Source code
Issue Tracker
OpenLayers Wrapper version 0.1.0
Initial prototype. Contains just WMS and Marker layers. Tested with Safari only, but should work on all browsers.
OpenLayers Wrapper version 0.2.0
* no need for adding openlayers javascripts, automatically downloaded from openlayers.org
* added some enhancements by John K Muiruri
OpenLayers Wrapper version 0.2.1
* no need for adding openlayers javascripts, automatically downloaded from openlayers.org
* added some enhancements by John K Muiruri
OpenLayers Wrapper version 0.4.0
Complete rewrite of the client side. Dropped gwt-openlayers, now uses own GWT wrapper classes for OpenLayers integration.
OpenLayers Wrapper version 0.5.0
* Improved vector drawing features
* Map extent and zoom level is not communicated back to server
* Fixed some bugs
* Removed some debugger calls from javascripts (may disturb user who have debugger on)
OpenLayers Wrapper version 0.5.1
* Improved vector drawing features
* Map extent and zoom level is not communicated back to server
* Fixed some bugs, including a critical FF issue in 0.5.1
* Removed some debugger calls from javascripts (may disturb user who have debugger on)
OpenLayers Wrapper version 0.5.2
* Improved vector drawing features
* Map extent and zoom level is not communicated back to server
* Fixed some bugs, including a critical FF issue in 0.5.1 and reload regression in 0.5.2
* Removed some debugger calls from javascripts (may disturb user who have debugger on)
OpenLayers Wrapper version 0.5.3
0.5.3:
* fixed non existing "console" issue with IE and FF without Firebug (prior to 4.0), caused updates from server to be ignored in some cases (note, online demos are not yet updated so keep you Firebug on while testing)
0.5.2:
* Improved vector drawing features
* Map extent and zoom level is not communicated back to server
* Fixed some bugs, including a critical FF issue in 0.5.1 and reload regression in 0.5.2
* Removed some debugger calls from javascripts (may disturb user who have debugger on)
OpenLayers Wrapper version 0.6.0
* DrawingMode.POINT (aka clicklistener) and PointVector
* fixed some bugs
* enhanced docs
OpenLayers Wrapper version 0.7.0
* Uses OpenLayers 2.11-rc: overall faster and better support for touch devices
* New layers
* lots for smaller enhancements and bug fixes. See project page for more information.
Note, demos have not been updated.
OpenLayers Wrapper version 0.7.1
Fixed issue where VectorLayers drawing mode was not properly initialized in some situations.
OpenLayers Wrapper version 0.8.0
Long waited improvements for VectorLayer: selections and styling. Instead of using MarkerLayer it is now suggested to use more flexible VectorLayer.
OpenLayers Wrapper version 0.8.1
Attribute based styling. Contributed by Giancarlo.
OpenLayers Wrapper version 0.9.0
* New layers: WFS, WKT
* Better projection support: The API projection can be set (developers can use others but just 4326 on the server side). Projection can be explicitly defined for WMS
OpenLayers Wrapper version 0.9.1
fixed GWT compilation issue with WKT wrapper
OpenLayers Wrapper version 0.9.2-SNAPSHOT
* Vectors can now be programmatically selected: VectorLayer.setSelectedVector(Vector)
* Improvements to attribute based styling
* fixed several bugs and other minor enhancements (see project page activity for details)
OpenLayers Wrapper version 0.9.2
Added real release build. 0.9.2 SNAPSHOT build was added accidentally on last release. There should be no functional changes.
OpenLayers Wrapper version 0.9.3
Context menu (aka Actions) and some other smaller enhancements, mostly contributed by Mark Thomas.
OpenLayers Wrapper version 0.9.4
Improved precision in context menu coordinates and resolution calculations. Packaged now as zip with separate source jar (should improve usability with m2e users).
OpenLayers Wrapper version 1.0.0
* Adding some remove methods to make API symmetric
* Bing map layer (unlike VirtualEarth layer, no need for external Javascript, just API key is needed)
* Basic ImageLayer support (non tiled single image)
OpenLayers Wrapper version 1.0.1
fixed issues 57 and 58
OpenLayers Wrapper version 1.1.0
* 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".
OpenLayers Wrapper version 1.2.0
- Hosted module now uses OL 2.12 that has especially a better support for recently updated Google Maps v3: attribution div no more pops up continuously
- much improved Popup (now supports virtually any Vaadin component)
- click listeners for map can now be added without "drawing mode point" hack
- several smaller bugfixes, see project page
OpenLayers Wrapper version 1.3.0
Lots of new features and bugfixes. See project page for more details. Huge thanks to Eiko Thomas, Mark Thomas, Özgün Oskay Alan and other contributors!
OpenLayers Wrapper version 1.3.1
Number of small bugfixes and features. Thanks for all contributors, this is truly working open source project.