more fine granular portal marker scaling on mobile devices (see #311)
This commit is contained in:
parent
ae2c9ad4aa
commit
94dceae694
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
window.portalMarkerScale = function() {
|
window.portalMarkerScale = function() {
|
||||||
var zoom = map.getZoom();
|
var zoom = map.getZoom();
|
||||||
|
if (L.Browser.mobile)
|
||||||
|
return zoom >= 16 ? 1 : zoom >= 14 ? 0.8 : zoom >= 11 ? 0.65 : zoom >= 8 ? 0.5 : 0.35;
|
||||||
|
else
|
||||||
return zoom >= 14 ? 1 : zoom >= 11 ? 0.8 : zoom >= 8 ? 0.65 : 0.5;
|
return zoom >= 14 ? 1 : zoom >= 11 ? 0.8 : zoom >= 8 ? 0.65 : 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user