if this doesn't work i don't know what will

This commit is contained in:
Laura Klünder 2018-12-27 00:05:15 +01:00
parent 5e863b88b7
commit 1f06d7c6b9

View file

@ -1413,8 +1413,8 @@ c3nav = {
layer = c3nav._userLocationLayers[location.level]; layer = c3nav._userLocationLayers[location.level];
for (level in c3nav._userLocationLayers) { for (level in c3nav._userLocationLayers) {
if (!c3nav._userLocationLayers.hasOwnProperty(level)) continue; if (!c3nav._userLocationLayers.hasOwnProperty(level)) continue;
//layer = c3nav._userLocationLayers[level]; layer = c3nav._userLocationLayers[level];
factor = (level === location.level) ? 1 : 0.3; factor = (parseInt(level) === parseInt(location.level)) ? 1 : 0.3;
L.circleMarker(latlng, { L.circleMarker(latlng, {
radius: 11, radius: 11,
stroke: 0, stroke: 0,
@ -1425,7 +1425,6 @@ c3nav = {
stroke: 0, stroke: 0,
fillOpacity: 1 * factor fillOpacity: 1 * factor
}).addTo(layer); }).addTo(layer);
break;
} }
$('.leaflet-control-user-location a').toggleClass('control-disabled', false); $('.leaflet-control-user-location a').toggleClass('control-disabled', false);
} else if (c3nav.hasLocationPermission()) { } else if (c3nav.hasLocationPermission()) {