namazu-ts 1.3.9 → 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.
- package/dist/browser/index.js +2 -2
- package/dist/node/index.js +2 -2
- package/package.json +1 -1
- package/src/sismomap.ts +2 -2
package/dist/browser/index.js
CHANGED
|
@@ -20111,7 +20111,7 @@ var SismoMap = class {
|
|
|
20111
20111
|
map.getCanvas().dispatchEvent(readyEvent);
|
|
20112
20112
|
});
|
|
20113
20113
|
const min = Math.min(map.getCanvas().height, map.getCanvas().width);
|
|
20114
|
-
this._spinDezoom = -6.7322 + 1.3905 * Math.log(min);
|
|
20114
|
+
this._spinDezoom = -6.7322 + 1.3905 * Math.log(min) - 0.5;
|
|
20115
20115
|
this.name = name;
|
|
20116
20116
|
this.changeLanguage(lang);
|
|
20117
20117
|
}
|
|
@@ -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({
|
package/dist/node/index.js
CHANGED
|
@@ -1127,7 +1127,7 @@ var SismoMap = class {
|
|
|
1127
1127
|
map.getCanvas().dispatchEvent(readyEvent);
|
|
1128
1128
|
});
|
|
1129
1129
|
const min = Math.min(map.getCanvas().height, map.getCanvas().width);
|
|
1130
|
-
this._spinDezoom = -6.7322 + 1.3905 * Math.log(min);
|
|
1130
|
+
this._spinDezoom = -6.7322 + 1.3905 * Math.log(min) - 0.5;
|
|
1131
1131
|
this.name = name;
|
|
1132
1132
|
this.changeLanguage(lang);
|
|
1133
1133
|
}
|
|
@@ -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
package/src/sismomap.ts
CHANGED
|
@@ -356,7 +356,7 @@ paint: {
|
|
|
356
356
|
|
|
357
357
|
});
|
|
358
358
|
const min = Math.min(map.getCanvas().height, map.getCanvas().width);
|
|
359
|
-
this._spinDezoom = -6.7322 + 1.3905 * Math.log(min);
|
|
359
|
+
this._spinDezoom = -6.7322 + 1.3905 * Math.log(min) - 0.5;
|
|
360
360
|
this.name = name;
|
|
361
361
|
this.changeLanguage(lang);
|
|
362
362
|
}
|
|
@@ -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
|
}
|