basemapkit 0.1.3 → 0.2.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.
- package/dist/basemapkit.d.ts +38 -0
- package/dist/basemapkit.js +596 -490
- package/dist/basemapkit.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +83 -4
package/dist/basemapkit.d.ts
CHANGED
|
@@ -110,7 +110,45 @@ export type GetStyleOptions = {
|
|
|
110
110
|
* `glyphs` option unnecessary.
|
|
111
111
|
*/
|
|
112
112
|
hideLabels?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Adding terrain to the style. This includes options for both hillshading and bumpy terrain
|
|
115
|
+
*/
|
|
116
|
+
terrain?: {
|
|
117
|
+
/**
|
|
118
|
+
* The public URL of a pmtiles files for raster terrain, encoded on RGB channels of either PNG or WebP. To use if sourcing tiles directly with
|
|
119
|
+
* range-request using the `pmtiles`'s protocol. Alternatively, the option `tileJson` can be used and will take precedence.
|
|
120
|
+
*/
|
|
121
|
+
pmtiles?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The public URL to a tile JSON file for raster terrain tiles, encoded on RGB channels of either PNG or WebP. To use if classic z/x/y MVT tiles are served through
|
|
124
|
+
* Maplibre's Martin or the pmtiles CLI. Will take precedence on the option `pmtiles` if both are provided.
|
|
125
|
+
*/
|
|
126
|
+
tilejson?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Encoding of the terrain raster data. Default: "mapbox"
|
|
129
|
+
*/
|
|
130
|
+
encoding?: "mapbox" | "terrarium";
|
|
131
|
+
/**
|
|
132
|
+
* Enable or disable the hillshading. Enabled by default if one of the source options `terrain.pmtiles` or `terrain.tilejson` is provided.
|
|
133
|
+
* It cannot be enabled if none of the source option is provided.
|
|
134
|
+
*/
|
|
135
|
+
hillshading?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* The terrain exaggeration is disabled by default, making the terrain flat even if one of the source options `terrain.pmtiles` or `terrain.tilejson` is provided.
|
|
138
|
+
* A value of `1` produces at-scale realistic terrain elevation.
|
|
139
|
+
* It cannot be enabled if none of the source option is provided.
|
|
140
|
+
*/
|
|
141
|
+
exaggeration?: number;
|
|
142
|
+
};
|
|
113
143
|
};
|
|
144
|
+
/**
|
|
145
|
+
* Identifier of the terrain source within the Basemapkit source definition
|
|
146
|
+
*/
|
|
147
|
+
export declare const BASEMAPKIT_BASEMAP_SOURCE_ID = "__bmk_bm_src";
|
|
148
|
+
/**
|
|
149
|
+
* Identifier of the terrain source within the Basemapkit style definition.
|
|
150
|
+
*/
|
|
151
|
+
export declare const BASEMAPKIT_TERRAIN_SOURCE_ID = "__bmk_tr_src";
|
|
114
152
|
/**
|
|
115
153
|
* Options relative to building a style
|
|
116
154
|
*/
|