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.
26 lines
519 B
26 lines
519 B
register_hook('init', function () {
|
|
// Geo location
|
|
L.control.locate({
|
|
locateOptions: {
|
|
enableHighAccuracy: true
|
|
},
|
|
flyTo: true,
|
|
keepCurrentZoomLevel: true,
|
|
initialZoomLevel: 17,
|
|
drawCircle: true,
|
|
circleStyle: {
|
|
weight: 0,
|
|
fillColor: '#ff0000'
|
|
},
|
|
markerStyle: {
|
|
color: '#ff0000',
|
|
fillColor: '#ff0000'
|
|
},
|
|
compassStyle: {
|
|
color: '#ff0000',
|
|
fillColor: '#ff0000'
|
|
},
|
|
showCompass: true,
|
|
showPopup: false
|
|
}).addTo(map)
|
|
})
|