@lgv/visualization-map 0.0.4 → 0.0.5

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/.gitlab-ci.yml CHANGED
@@ -6,10 +6,6 @@ stages:
6
6
  include:
7
7
  ###################################### GITLAB TEMPLATES ######################################
8
8
  - template: Security/SAST.gitlab-ci.yml
9
-
10
- # overwrites
11
- - project: "lgensinger/cicd-templates"
12
- file: "node/module/eslint-sast.yml"
13
9
 
14
10
  - project: "lgensinger/cicd-templates"
15
11
  file: "node/module/nodejs-scan-sast.yml"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgv/visualization-map",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "description": "ES6 d3.js core visualization scaffold object and utilities for maps.",
6
6
  "main": "src/index.js",
@@ -21,10 +21,10 @@ import { configuration, configurationColor, configurationLayout } from "../confi
21
21
  */
22
22
  class Heatmap extends VisualizationMap {
23
23
 
24
- constructor(data, width=configurationLayout.width, height=configurationLayout.height, HeatLayout=null, label=configuration.branding, name=configuration.name) {
24
+ constructor(data, width=configurationLayout.width, height=configurationLayout.height, HeatLayout=null, tileServerUrl=configurationLayout.tileserver, label=configuration.branding, name=configuration.name) {
25
25
 
26
26
  // initialize inheritance
27
- super(data, width, height, HeatLayout ? HeatLayout : new HL(data), label, name);
27
+ super(data, width, height, HeatLayout ? HeatLayout : new HL(data), tileServerUrl, label, name);
28
28
 
29
29
  // initialize vega
30
30
  VegaDeckGl.use(vega, deck, layers, luma);
@@ -16,7 +16,7 @@ import { configuration, configurationLayout } from "../configuration.js";
16
16
  */
17
17
  class VisualizationMap extends LinearGrid {
18
18
 
19
- constructor(data, width=configurationLayout.width, height=configurationLayout.height, MapData=null, label=configuration.branding, name=configuration.name) {
19
+ constructor(data, width=configurationLayout.width, height=configurationLayout.height, MapData=null, tileServerUrl=configurationLayout.tileserver, label=configuration.branding, name=configuration.name) {
20
20
 
21
21
  // initialize inheritance
22
22
  super(data, width, height, MapData, label, name);
@@ -32,7 +32,7 @@ class VisualizationMap extends LinearGrid {
32
32
  // update self
33
33
  this.center = [x,y];
34
34
  this.map = null;
35
- this.tileserver = configurationLayout.tileserver;
35
+ this.tileServerUrl = tileServerUrl;
36
36
  this.zoom = 1;
37
37
 
38
38
  }
@@ -143,7 +143,7 @@ class VisualizationMap extends LinearGrid {
143
143
  this.attachEvents();
144
144
 
145
145
  // update tile server
146
- L.tileLayer(this.tileserver).addTo(this.map);
146
+ L.tileLayer(this.tileServerUrl).addTo(this.map);
147
147
 
148
148
  // fit to bounds
149
149
  this.fitToData();