Fixed broken consolidated show/hide code.

This commit is contained in:
fescen9 2010-12-08 07:32:51 +00:00
parent d6819372e6
commit cf2f585364

View File

@ -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;
} }