namazu-ts 1.2.7 → 1.2.8

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": "namazu-ts",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "main": "./dist/node/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/sismomap.ts CHANGED
@@ -795,6 +795,10 @@ paint: {
795
795
  }
796
796
  }
797
797
  showContourLegend(type: ContourType | false) {
798
+ if (type === ContourType.INTENSITY) {
799
+ this.showIntensityLegend(true);
800
+ return;
801
+ }
798
802
 
799
803
  function handle(map: SismoMap) {
800
804
 
package/src/types.ts CHANGED
@@ -22,6 +22,7 @@ export enum NamazuSource {
22
22
  }
23
23
 
24
24
  export enum ContourType {
25
+ INTENSITY = 'intensity',
25
26
  PGA = 'pga',
26
27
  PGV = 'pgv',
27
28
  PSA0P3 = 'psa0p3',