OpenLayers Wrapper out of beta

Hi,

My hobby project OpenLayer wrapper for Vaadin has been rather active lately. I have been busy reviewing contributions and it has also inspired me to make some improvements by myself too. Moments ago i released 0.8.0 version of the add-on. As the add-on is already successfully used in multiple projects, I decided to drop the beta flag from the Directory listing too. Basic features are there and appear to work ok. Let the first zero in the version remind that some features are still not that much used/tested and there is still lot of features to implement.

The most essential changes that have ended into the release lately:

  • Styling of WMS layers with SLD. Thanks to Ozgun Oskay.
  • Styling for Vector layer. StyleMaps can be assigned to Vector layer or Style’s can be directly set to individual Vectors. Vector styling is based on work by Giancarlo Domanico.
  • VectorSelectedListener (and unselected listener) for VectorLayer.

Thanks for other contributions as well (not just patches but bug reports, feature requests and other feedback)!

cheers,
matti

Since you forgot to link it, here’s the link to the add-on in the Directory for everyone interested :slight_smile:
http://vaadin.com/directory#addon/openlayers-wrapper

Thanks for a great add-on

Could you pls advice how to do the Measure or Distance Tool like this ( http://openlayers.org/dev/examples/measure.html ) ?

Hi,

The Measure control still has no server side counterpart, so using to use it directly you’d need to implement it or fill an issue to google code project and hope that somebody will implement it.

You could though implement measuring tool completely on the server side using VectorLayer and it drawing functionalities. In vector added listener you can just read the coordinates of the drawn vector and do the required math on the server side (possibly using some gis library).

cheers,
matti

Thanks Matti,

I can do it by extending the OpenLayersMap and the VOpenLayersMap.

BTW, why don’t you use the gwtopenlayers ( https://bitbucket.org/gwtopenlayers/gwt-openlayers/overview )?

Great if you can accept the challenge. Please add an issue to the google code project and attach patch there once it is ready.

The project actually used gwt-openlayers when I started it, but it was not very impressed on its quality and architecture. It for e.g. didn’t use js overlays and the api wasn’t that well object oriented. Don’t know if it has evolved since.

cheers,
matti