This commit is contained in:
Dave Conway-Jones 2019-04-02 11:04:57 +01:00
parent 13b2dc0e04
commit e2e3e439cb
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -958,7 +958,7 @@ function setMarker(data) {
}
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 (clusterAt > 0) {
layers[lay] = new L.MarkerClusterGroup({