src/mmw/js/src/core/views.js
// Init the locate plugin button and add it to the map.
Init the locate plugin button and add it to the map.
Init the locate plugin button and add it to the map .
function addLocateMeButton(map, maxZoom, maxAge) {
    var locateOptions = {
        position: 'bottomright',
        metric: false,
        drawCircle: false,
        showPopup: false,
        follow: false,
        markerClass: L.marker,
        markerStyle: {
            opacity: 0.0,
            clickable: false,
            keyboard: false
        },
        locateOptions: {
            maxZoom: maxZoom,
            maximumAge: maxAge
        },
        strings: {
            title: 'Zoom to your location.'
        }
    };
    L.control.locate(locateOptions).addTo(map);
}
function addLocateMeButton ( map , maxZoom , maxAge ) { var locateOptions = { position : 'bottomright' , metric : false , drawCircle : false , showPopup : false , follow : false , markerClass : L . marker , markerStyle : { opacity : 0.0 , clickable : false , keyboard : false } , locateOptions : { maxZoom : maxZoom , maximumAge : maxAge } , strings : { title : 'Zoom to your location.' } } ; L . control . locate ( locateOptions ) . addTo ( map ) ; }
Init the locate plugin button and add it to the map.
Init the locate plugin button and add it to the map .
// Cache location response, in ms