oops
This commit is contained in:
parent
13b2dc0e04
commit
e2e3e439cb
@ -958,7 +958,7 @@ function setMarker(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var lay = data.layer || "unknown";
|
var lay = data.layer || "unknown";
|
||||||
if (data.hasOwnProperty("action") && data.action.indexOf("layer") === -1) {
|
if (!data.hasOwnProperty("action") || data.action.indexOf("layer") === -1) {
|
||||||
if (typeof layers[lay] == "undefined") { // add layer if if doesn't exist
|
if (typeof layers[lay] == "undefined") { // add layer if if doesn't exist
|
||||||
if (clusterAt > 0) {
|
if (clusterAt > 0) {
|
||||||
layers[lay] = new L.MarkerClusterGroup({
|
layers[lay] = new L.MarkerClusterGroup({
|
||||||
|
Loading…
Reference in New Issue
Block a user