diff --git a/src/components/LHeatmap.vue b/src/components/LHeatmap.vue index ebb14c2..3398d6e 100644 --- a/src/components/LHeatmap.vue +++ b/src/components/LHeatmap.vue @@ -87,6 +87,13 @@ export default { propsBinder(this, this.mapObject, props); this.parentContainer = findRealParent(this.$parent); this.parentContainer.addLayer(this, !this.visible); + this.$watch( + "latLng", + newVal => { + this.mapObject.setLatLngs(newVal); + }, + { deep: true } + ); }, beforeDestroy() { this.parentContainer.removeLayer(this);