@lgv/visualization-map 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -156,6 +156,9 @@ class VisualizationMap extends LinearGrid {
|
|
|
156
156
|
// update tile server
|
|
157
157
|
L.tileLayer(this.tileServerUrl).addTo(this.map);
|
|
158
158
|
|
|
159
|
+
// fit to data if provided
|
|
160
|
+
if (this.data) this.fitToData();
|
|
161
|
+
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
/**
|
|
@@ -169,6 +172,9 @@ class VisualizationMap extends LinearGrid {
|
|
|
169
172
|
// generate patterns
|
|
170
173
|
this.generatePatterns();
|
|
171
174
|
|
|
175
|
+
// generate chart
|
|
176
|
+
this.generateChart();
|
|
177
|
+
|
|
172
178
|
// add handlers for leaflet events
|
|
173
179
|
this.attachEvents();
|
|
174
180
|
|