namazu-ts 1.3.10 → 1.3.11

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.
@@ -20228,7 +20228,7 @@ var SismoMap = class {
20228
20228
  * Displays the popup remotely for a station. Why is it here ? I needed it
20229
20229
  */
20230
20230
  displayStationPopup(station) {
20231
- this._descPopups[0].setLngLat(station.geometry.coordinates).setText(station.properties.stationcode).addTo(this.map);
20231
+ this._descPopups[0].setLngLat(station.geometry.coordinates).setText(station.properties.networkcode + "." + station.properties.stationcode).addTo(this.map);
20232
20232
  this._descPopups[0].getElement().style.color = "black";
20233
20233
  }
20234
20234
  displayStations({
@@ -1244,7 +1244,7 @@ var SismoMap = class {
1244
1244
  * Displays the popup remotely for a station. Why is it here ? I needed it
1245
1245
  */
1246
1246
  displayStationPopup(station) {
1247
- this._descPopups[0].setLngLat(station.geometry.coordinates).setText(station.properties.stationcode).addTo(this.map);
1247
+ this._descPopups[0].setLngLat(station.geometry.coordinates).setText(station.properties.networkcode + "." + station.properties.stationcode).addTo(this.map);
1248
1248
  this._descPopups[0].getElement().style.color = "black";
1249
1249
  }
1250
1250
  displayStations({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "namazu-ts",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "type": "module",
5
5
  "main": "./dist/node/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/sismomap.ts CHANGED
@@ -489,7 +489,7 @@ paint: {
489
489
  displayStationPopup(station: Station) {
490
490
  this._descPopups[0]
491
491
  .setLngLat(station.geometry.coordinates as any)
492
- .setText(station.properties.stationcode)
492
+ .setText(station.properties.networkcode + '.' + station.properties.stationcode)
493
493
  .addTo(this.map);
494
494
  this._descPopups[0].getElement().style.color = 'black';
495
495
  }