index.js
/**
 * Add a blue marker and accuracy ring to the user's location.
 */
Add a blue marker and accuracy ring to the user's location.
Add a blue marker and accuracy ring to the user ' s location .
function onLocationFound(e) {
	if (locationCircle != null && locationCircleMarker != null) {
		locationCircle.remove();
		locationCircleMarker.remove();
	}
    var radius = e.accuracy / 2;
    locationCircleMarker = L.circleMarker(e.latlng, {
        radius: 10,
        color: 'white',
        fillColor: 'blue',
        fillOpacity: 1
    }).addTo(map);
    locationCircle = L.circle(e.latlng, radius).addTo(map);
}
function onLocationFound ( e ) { if ( locationCircle != null && locationCircleMarker != null ) { locationCircle . remove ( ) ; locationCircleMarker . remove ( ) ; } var radius = e . accuracy / 2 ; locationCircleMarker = L . circleMarker ( e . latlng , { radius : 10 , color : 'white' , fillColor : 'blue' , fillOpacity : 1 } ) . addTo ( map ) ; locationCircle = L . circle ( e . latlng , radius ) . addTo ( map ) ; }
Add a blue marker and accuracy ring to the user's location.
Add a blue marker and accuracy ring to the user ' s location .
//.bindPopup("You are within " + radius + " meters from this point").openPopup();