@reearth/core 0.0.7-alpha.40 → 0.0.7-alpha.41

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": "@reearth/core",
3
- "version": "0.0.7-alpha.40",
3
+ "version": "0.0.7-alpha.41",
4
4
  "author": "Re:Earth contributors <community@reearth.io>",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A library that abstracts a map engine as one common API.",
@@ -1,7 +1,6 @@
1
1
  import { WebMercatorTilingScheme } from "@cesium/engine";
2
2
  import {
3
3
  ImageryProvider,
4
- ArcGisMapServerImageryProvider,
5
4
  IonImageryProvider,
6
5
  OpenStreetMapImageryProvider,
7
6
  IonWorldImageryStyle,
@@ -26,32 +25,27 @@ export const tiles = {
26
25
  }).catch(console.error),
27
26
  open_street_map: () =>
28
27
  new OpenStreetMapImageryProvider({
29
- url: "https://a.tile.openstreetmap.org/",
28
+ url: "https://tile.openstreetmap.org/{zoom}/{x}/{y}.png",
30
29
  credit:
31
- "Copyright: Tiles © Esri Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",
30
+ '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
32
31
  }),
33
- esri_world_topo: () =>
34
- ArcGisMapServerImageryProvider.fromUrl(
35
- "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
36
- {
37
- credit:
38
- "Copyright: Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Communit",
39
- enablePickFeatures: false,
40
- },
41
- ).catch(console.error),
42
32
  black_marble: ({ cesiumIonAccessToken } = {}) =>
43
- IonImageryProvider.fromAssetId(3812, { accessToken: cesiumIonAccessToken }).catch(
44
- console.error,
45
- ),
33
+ IonImageryProvider.fromAssetId(3812, {
34
+ accessToken: cesiumIonAccessToken,
35
+ }).catch(console.error),
46
36
  japan_gsi_standard: () =>
47
37
  new OpenStreetMapImageryProvider({
48
38
  url: "https://cyberjapandata.gsi.go.jp/xyz/std/",
39
+ credit:
40
+ "<a href='https://maps.gsi.go.jp/development/ichiran.html'>国土地理院</a>, Shoreline data is derived from: United States. National Imagery and Mapping Agency. \"Vector Map Level 0 (VMAP0).\" Bethesda, MD: Denver, CO: The Agency; USGS Information Services, 1997.",
49
41
  }),
50
42
  url: ({ url, heatmap, tile_zoomLevel } = {}) =>
51
43
  url
52
44
  ? new UrlTemplateImageryProvider({
53
45
  url,
54
- tileDiscardPolicy: heatmap ? new DiscardEmptyTileImagePolicy() : undefined,
46
+ tileDiscardPolicy: heatmap
47
+ ? new DiscardEmptyTileImagePolicy()
48
+ : undefined,
55
49
  minimumLevel: tile_zoomLevel?.[0],
56
50
  maximumLevel: tile_zoomLevel?.[1],
57
51
  })