maplibre-gl-basemap-control 0.10.0 → 0.11.0

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.
@@ -151,8 +151,43 @@ const OPENFREEMAP_ATTRIBUTION = "OpenFreeMap © OpenMapTiles Data from OpenS
151
151
  const TOMTOM_ATTRIBUTION = "© TomTom";
152
152
  const HERE_ATTRIBUTION = "© HERE";
153
153
  const GOOGLE_ATTRIBUTION = "© Google";
154
- const EOX_S2CLOUDLESS_ATTRIBUTION = 'Sentinel-2 cloudless <a href="https://cloudless.eox.at" target="_blank" rel="noopener">EOxCloudless</a> by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2025)';
154
+ const eoxS2CloudlessAttribution = (year) => `Sentinel-2 cloudless <a href="https://cloudless.eox.at" target="_blank" rel="noopener">EOxCloudless</a> by EOX IT Services GmbH (Contains modified Copernicus Sentinel data ${year})`;
155
+ const EOX_S2CLOUDLESS_YEARS = [
156
+ 2018,
157
+ 2019,
158
+ 2020,
159
+ 2021,
160
+ 2022,
161
+ 2023,
162
+ 2024,
163
+ 2025
164
+ ];
165
+ function eoxS2CloudlessBasemap(year) {
166
+ return rasterBasemap({
167
+ id: `eox-s2cloudless-${year}`,
168
+ name: `EOX Sentinel-2 cloudless ${year}`,
169
+ provider: "eox",
170
+ category: "Imagery",
171
+ description: `Cloudless Sentinel-2 satellite mosaic for ${year} (non-commercial use).`,
172
+ attribution: eoxS2CloudlessAttribution(year),
173
+ tiles: [
174
+ `https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-${year}_3857/default/GoogleMapsCompatible/{z}/{y}/{x}.jpg`
175
+ ],
176
+ maxzoom: 16,
177
+ tags: [
178
+ "eox",
179
+ "sentinel",
180
+ "satellite",
181
+ "imagery",
182
+ "cloudless",
183
+ "copernicus",
184
+ String(year)
185
+ ]
186
+ });
187
+ }
155
188
  const EOX_TERRAIN_LIGHT_ATTRIBUTION = 'Terrain Light <a href="https://maps.eox.at" target="_blank" rel="noopener">EOX</a> (Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX)';
189
+ const EOX_TERRAIN_ATTRIBUTION = 'Terrain <a href="https://maps.eox.at" target="_blank" rel="noopener">EOX</a> (Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX)';
190
+ const EOX_OVERLAY_ATTRIBUTION = 'Overlay <a href="https://maps.eox.at" target="_blank" rel="noopener">EOX</a> (Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX)';
156
191
  const MAPBOX_TRAFFIC_CONGESTION_COLORS = [
157
192
  "match",
158
193
  ["get", "congestion"],
@@ -738,26 +773,7 @@ const DEFAULT_BASEMAPS = [
738
773
  ],
739
774
  tags: ["esri", "terrain"]
740
775
  }),
741
- rasterBasemap({
742
- id: "eox-s2cloudless-2025",
743
- name: "EOX Sentinel-2 cloudless 2025",
744
- provider: "eox",
745
- category: "Imagery",
746
- description: "Cloudless Sentinel-2 satellite mosaic for 2025 (non-commercial use).",
747
- attribution: EOX_S2CLOUDLESS_ATTRIBUTION,
748
- tiles: [
749
- "https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2025_3857/default/GoogleMapsCompatible/{z}/{y}/{x}.jpg"
750
- ],
751
- maxzoom: 16,
752
- tags: [
753
- "eox",
754
- "sentinel",
755
- "satellite",
756
- "imagery",
757
- "cloudless",
758
- "copernicus"
759
- ]
760
- }),
776
+ ...EOX_S2CLOUDLESS_YEARS.map(eoxS2CloudlessBasemap),
761
777
  rasterBasemap({
762
778
  id: "eox-terrain-light",
763
779
  name: "EOX Terrain Light",
@@ -771,6 +787,47 @@ const DEFAULT_BASEMAPS = [
771
787
  maxzoom: 14,
772
788
  tags: ["eox", "terrain", "light", "hillshade"]
773
789
  }),
790
+ rasterBasemap({
791
+ id: "eox-terrain",
792
+ name: "EOX Terrain",
793
+ provider: "eox",
794
+ category: "Terrain",
795
+ description: "Natural-like terrain basemap from EOX Maps (non-commercial use).",
796
+ attribution: EOX_TERRAIN_ATTRIBUTION,
797
+ // terrain_3857 is only published on EOX's "g" tile matrix set, which is the
798
+ // Web Mercator (GoogleMapsCompatible) grid under a different identifier.
799
+ tiles: [
800
+ "https://tiles.maps.eox.at/wmts/1.0.0/terrain_3857/default/g/{z}/{y}/{x}.jpg"
801
+ ],
802
+ maxzoom: 14,
803
+ tags: ["eox", "terrain", "hillshade"]
804
+ }),
805
+ rasterBasemap({
806
+ id: "eox-overlay",
807
+ name: "EOX Overlay",
808
+ provider: "eox",
809
+ category: "Labels",
810
+ description: "Transparent overlay with borders and points of interest from EOX Maps (non-commercial use).",
811
+ attribution: EOX_OVERLAY_ATTRIBUTION,
812
+ tiles: [
813
+ "https://tiles.maps.eox.at/wmts/1.0.0/overlay_3857/default/GoogleMapsCompatible/{z}/{y}/{x}.png"
814
+ ],
815
+ maxzoom: 14,
816
+ tags: ["eox", "overlay", "labels", "borders", "reference"]
817
+ }),
818
+ rasterBasemap({
819
+ id: "eox-overlay-bright",
820
+ name: "EOX Overlay Bright",
821
+ provider: "eox",
822
+ category: "Labels",
823
+ description: "Bright transparent overlay with borders and points of interest from EOX Maps (non-commercial use).",
824
+ attribution: EOX_OVERLAY_ATTRIBUTION,
825
+ tiles: [
826
+ "https://tiles.maps.eox.at/wmts/1.0.0/overlay_bright_3857/default/GoogleMapsCompatible/{z}/{y}/{x}.png"
827
+ ],
828
+ maxzoom: 14,
829
+ tags: ["eox", "overlay", "labels", "borders", "reference", "bright"]
830
+ }),
774
831
  rasterBasemap({
775
832
  id: "nasa-gibs-blue-marble",
776
833
  name: "Blue Marble",
@@ -3051,4 +3108,4 @@ exports.createBasemapCatalog = createBasemapCatalog;
3051
3108
  exports.filterBasemaps = filterBasemaps;
3052
3109
  exports.getBasemapCategories = getBasemapCategories;
3053
3110
  exports.resolveBasemapProviders = resolveBasemapProviders;
3054
- //# sourceMappingURL=BasemapControl-DXJHjc6Z.cjs.map
3111
+ //# sourceMappingURL=BasemapControl-CDGZrQ2Y.cjs.map