This module provides a simple button behavior for Openlayers that centers and zooms the map to the browser's current location when clicked. It is essentially the same code as the Geolocate behavior that comes packaged with Openlayers, but it works on a manual button click, rather than automatically when the map is loaded.

It will also show the location, as well as it's accuracy, as features on the map.

Versions

7.x-3.x works with Openlayers 7.x-3.x

7.x-1.x works with Openlayers 7.x-2.x

Supporting organizations: 
Sponsorship/development

Project information

Releases