mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Fixed broken consolidated show/hide code.
This commit is contained in:
parent
d6819372e6
commit
cf2f585364
@ -614,7 +614,7 @@ function makeRequest(url, func, type, fail, post, contenttype)
|
|||||||
if(p[0] in markers) {
|
if(p[0] in markers) {
|
||||||
var m = markers[p[0]];
|
var m = markers[p[0]];
|
||||||
|
|
||||||
if (showWarps == false) {
|
if ((p[1] == 'warp' && showWarps == false) || (p[1] == 'marker' && showMarkers == false)) {
|
||||||
m.setMap(null);
|
m.setMap(null);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -625,7 +625,7 @@ function makeRequest(url, func, type, fail, post, contenttype)
|
|||||||
var converted = fromWorldToLatLng(p[3], p[4], p[5]);
|
var converted = fromWorldToLatLng(p[3], p[4], p[5]);
|
||||||
m.setPosition(converted);
|
m.setPosition(converted);
|
||||||
} else {
|
} else {
|
||||||
if (showWarps == false) {
|
if ((p[1] == 'warp' && showWarps == false) || (p[1] == 'marker' && showMarkers == false)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user