Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make settlements a vector layer

Benjamin King577d6092d9f7
diff --git a/config/default/common/config/wv.json/layers/sedac/GRUMP_Settlements.json b/config/default/common/config/wv.json/layers/sedac/GRUMP_Settlements.json
index 9c7d4d28f..d82cc2e22 100644
--- a/config/default/common/config/wv.json/layers/sedac/GRUMP_Settlements.json
+++ b/config/default/common/config/wv.json/layers/sedac/GRUMP_Settlements.json
@@ -1,35 +1,27 @@
{
"layers": {
"GRUMP_Settlements": {
- "id": "GRUMP_Settlements",
"title": "Settlements",
"subtitle": "Global Rural-Urban Mapping Project (GRUMP), v1",
"description": "sedac/GRUMP_Settlements",
+ "type": "vector",
+ "tags": "vector vectors",
"group": "overlays",
- "format": "image/png",
- "tileSize": [
- 512,
- 512
- ],
- "type": "wms",
- "styles": "grump-v1-settlement-points:scale-dependent",
+ "downloadId": "GRUMP_Settlements",
"layergroup": [
- "sedac"
+ "vector"
],
"product": "CIESIN_SEDAC_GRUMPv1_STLMNT01",
- "projections": {
- "arctic": {
- "source": "GIBS:wms:arctic"
- },
- "geographic": {
- "source": "GIBS:wms"
- }
- },
+ "uniqueIdenitifier": "Latlongid",
+ "inactive": true,
"palette": {
"id": "GRUMP_Settlements",
"immutable": true
},
- "wrapX": true
+ "wrapX": true,
+ "vectorStyle": {
+ "id": "GRUMP_Settlements"
+ }
}
}
}
\ No newline at end of file
diff --git a/config/default/common/vectorstyles/GRUMP_Settlements.json b/config/default/common/vectorstyles/GRUMP_Settlements.json
new file mode 100644
index 000000000..e406c556d
--- /dev/null
+++ b/config/default/common/vectorstyles/GRUMP_Settlements.json
@@ -0,0 +1,26 @@
+{
+ "version": 8,
+ "name": "SEDAC",
+ "sources": {
+ "GRUMP_Settlements": {
+ "type": "vector",
+ "tiles": [
+ "https://gibs.earthdata.nasa.gov/wmts/epsg4326/std/GRUMP_Settlements/default/{Time}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.mvt"
+ ]
+ }
+ },
+ "layers": [{
+ "id": "GRUMP_Settlements",
+ "source": "GRUMP_Settlements",
+ "source-layer": "GRUMP_Settlements",
+ "source-description": "Default",
+ "type": "circle",
+ "paint": {
+ "circle-radius": ["step", ["zoom"], 1, 17, 2, 19, 3, 22, 5],
+ "circle-color": "rgb(0, 123, 255)",
+ "circle-stroke-color": "rgba(0,0,0,0.7)",
+ "circle-opacity": 0.7,
+ "circle-stroke-width": 0.3
+ }
+ }]
+}
\ No newline at end of file