You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
355 B
12 lines
355 B
const LeafletGeoSearch = require('leaflet-geosearch')
|
|
|
|
register_hook('init', function () {
|
|
// Add Geo Search
|
|
var provider = new LeafletGeoSearch.OpenStreetMapProvider()
|
|
var searchControl = new LeafletGeoSearch.GeoSearchControl({
|
|
provider: provider,
|
|
showMarker: false,
|
|
retainZoomLevel: true
|
|
})
|
|
global.map.addControl(searchControl)
|
|
})
|