Skip to content

Commit c3040b4

Browse files
committed
- update the way we test for tiles data type
1 parent 73012e8 commit c3040b4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pygeoapi/api/tiles.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ def get_collection_tiles(api: API, request: APIRequest,
141141

142142
tiling_schemes = p.get_tiling_schemes()
143143

144-
dataType = None
145-
if (t['format']['mimetype'] == 'application/vnd.mapbox-vector-tile'):
146-
dataType = 'vector'
147-
elif (t['format']['mimetype'] == 'image/png'):
148-
dataType = 'map'
144+
145+
dataType = 'vector'
146+
if t['formats']['mimetype'].startswith('image'): datatype = 'map'
149147

150148
if dataType is None:
151149
LOGGER.error("Could not determine tile data type")

0 commit comments

Comments
 (0)