easier c3nav.js

This commit is contained in:
Laura Klünder 2018-12-27 01:08:04 +01:00
parent 1f06d7c6b9
commit 1ac1b71a97

View file

@ -1409,12 +1409,11 @@ c3nav = {
}
if (location) {
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('my_location'));
var latlng = L.GeoJSON.coordsToLatLng(location.geometry.coordinates),
layer = c3nav._userLocationLayers[location.level];
var latlng = L.GeoJSON.coordsToLatLng(location.geometry.coordinates);
for (level in c3nav._userLocationLayers) {
if (!c3nav._userLocationLayers.hasOwnProperty(level)) continue;
layer = c3nav._userLocationLayers[level];
factor = (parseInt(level) === parseInt(location.level)) ? 1 : 0.3;
factor = (parseInt(level) === location.level) ? 1 : 0.3;
L.circleMarker(latlng, {
radius: 11,
stroke: 0,