Skip to content

Commit 16ca064

Browse files
committed
add featureserver
1 parent 5b524c1 commit 16ca064

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ Links to a [TileJSON](https://github.com/mapbox/tilejson-spec) document.
137137
| href | string | **REQUIRED**. Link to the valid TileJSON document. |
138138
| type | string | Recommended to be set to `application/json`. |
139139

140+
### FeatureServer
141+
142+
Links to a [ArcGIS FeatureServer](https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/) service.
143+
144+
| Field Name | Type | Description |
145+
| --------------- | -------------------- | ----------- |
146+
| rel | string | **REQUIRED**. Must be set to `featureserver`. |
147+
| href | string | **REQUIRED**. Link to a FeatureServer service. Usually has the following form `https://<root>/<serviceName>/FeatureServer`|
148+
| type | string | Recommended to be set to `application/json` |
149+
| featureserver:layers | Map<string, string> | Layers |
150+
151+
140152
### General
141153

142154
The following field applies to multiple types of web mapping services:

examples/collection.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@
9595
"pmtiles:layers": [
9696
"streets"
9797
]
98+
},
99+
{
100+
"href": "https://service.arcgis.com/arcgis/rest/datast/FeatureServer",
101+
"rel": "featureserver",
102+
"title": "ArcGIS FeatureServer",
103+
"type": "application/json",
104+
"featureserver:layers": {
105+
"0": "streets"
106+
}
98107
}
99108
]
100109
}

json-schema/schema.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,31 @@
165165
}
166166
}
167167
}
168+
},
169+
{
170+
"$comment": "Defines FeatureServer links",
171+
"if": {
172+
"properties": {
173+
"rel": {
174+
"const": "featureserver"
175+
}
176+
}
177+
},
178+
"then": {
179+
"properties": {
180+
"pmtiles:layers": {
181+
"type": "object",
182+
"items": {
183+
"type": "string",
184+
"minItems": 1,
185+
"items": {
186+
"type": "string",
187+
"minLength": 1
188+
}
189+
}
190+
}
191+
}
192+
}
168193
}
169194
]
170195
}

0 commit comments

Comments
 (0)