implemented for openlayers and added to the example