@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgv/visualization-map",
3
- "version": "1.1.6",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "description": "ES6 d3.js core visualization scaffold object and utilities for maps.",
6
6
  "main": "src/index.js",
@@ -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