mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Update openlayers.pandora.js
This commit is contained in:
parent
c9219107bf
commit
0ff56b0856
@ -245,11 +245,11 @@ function EventZoomEnd (evt,zoom = map.zoom) {
|
|||||||
|
|
||||||
jQuery.each($("tspan"), function (i, tspan) {
|
jQuery.each($("tspan"), function (i, tspan) {
|
||||||
if (actual_zoom <= 18 && actual_zoom > 13)
|
if (actual_zoom <= 18 && actual_zoom > 13)
|
||||||
actual_font_size = (max_font_size + 5);
|
actual_font_size = (max_font_size - 3);
|
||||||
else if (actual_zoom <= 13 && actual_zoom >= 8)
|
else if (actual_zoom <= 13 && actual_zoom >= 8)
|
||||||
actual_font_size = (max_font_size);
|
actual_font_size = (max_font_size - 6);
|
||||||
else if (actual_zoom <= 8)
|
else if (actual_zoom <= 8)
|
||||||
actual_font_size = (max_font_size);
|
actual_font_size = (max_font_size - 6);
|
||||||
$(tspan).css('font-size', actual_font_size);
|
$(tspan).css('font-size', actual_font_size);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -288,6 +288,7 @@ function EventZoomEnd (evt,zoom = map.zoom) {
|
|||||||
function changeShowStatus(newShowStatus) {
|
function changeShowStatus(newShowStatus) {
|
||||||
statusShow = newShowStatus;
|
statusShow = newShowStatus;
|
||||||
hideAgentsStatus();
|
hideAgentsStatus();
|
||||||
|
EventZoomEnd(null,map.zoom);
|
||||||
js_refreshParentLines();
|
js_refreshParentLines();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user