easier c3nav.js
This commit is contained in:
parent
1f06d7c6b9
commit
1ac1b71a97
1 changed files with 2 additions and 3 deletions
|
@ -1409,12 +1409,11 @@ c3nav = {
|
||||||
}
|
}
|
||||||
if (location) {
|
if (location) {
|
||||||
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('my_location'));
|
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('my_location'));
|
||||||
var latlng = L.GeoJSON.coordsToLatLng(location.geometry.coordinates),
|
var latlng = L.GeoJSON.coordsToLatLng(location.geometry.coordinates);
|
||||||
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 = (parseInt(level) === parseInt(location.level)) ? 1 : 0.3;
|
factor = (parseInt(level) === location.level) ? 1 : 0.3;
|
||||||
L.circleMarker(latlng, {
|
L.circleMarker(latlng, {
|
||||||
radius: 11,
|
radius: 11,
|
||||||
stroke: 0,
|
stroke: 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue