if this doesn't work i don't know what will
This commit is contained in:
parent
5e863b88b7
commit
1f06d7c6b9
1 changed files with 2 additions and 3 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue