Openlayers Geolocate Button

Categories

Component ID

2387869

Component name

Openlayers Geolocate Button

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

3262

Component created

Component changed

Component body

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