Meilleure gestion du zoom des icones sur les calcuqes pbf
This commit is contained in:
1 parent
cf36496e0f
commit
fafddc8d8f
1 file changed
+2
-2
@@ -94,9 +94,9 @@ $(document).ready(function() {
|
|||||||
var style = getPoiStyle(type);
|
var style = getPoiStyle(type);
|
||||||
var scale = 1;
|
var scale = 1;
|
||||||
if (zoom === 8) {
|
if (zoom === 8) {
|
||||||
scale = 1.1;
|
|
||||||
} else if (zoom >= 9) {
|
|
||||||
scale = 1.2;
|
scale = 1.2;
|
||||||
|
} else if (zoom >= 9) {
|
||||||
|
scale = 1.4;
|
||||||
}
|
}
|
||||||
var size = Math.max(1, Math.round(style.size * scale));
|
var size = Math.max(1, Math.round(style.size * scale));
|
||||||
var iconUrl = svgDataUriFor(style.color, size, style.shape);
|
var iconUrl = svgDataUriFor(style.color, size, style.shape);
|
||||||
|
|||||||
Reference in new issue
Block a user