Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,15 @@ class Pattern extends BasePattern {
map.addControl(minimap);
}

// Refresh map data
$(this.el).on("leaflet.refresh", (e, geojson) => {
if ( typeof this.marker_cluster != "undefined" ) {
this.marker_cluster.clearLayers();
}
if (geojson) {
this.init_geojson(map, geojson);
}
});
log.debug("pattern initialized");
}

Expand Down