Hi, I'm trying to create a tileset from a big geojson file and to serve it directly from s3. The pbf files get created (I can view them in Qgis) but when I load the tileset in mapbox I get these errors:
Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
at kh.url (tile_id.js:32:1)
at Ie.loadTile (vector_tile_source.js:215:1)
at sy._loadTile (source_cache.js:151:1)
at sy._addTile (source_cache.js:766:1)
at sy._updateRetainedTiles (source_cache.js:632:1)
at sy.update (source_cache.js:534:1)
at Ie.<anonymous> (source_cache.js:74:1)
at Ie.fire (evented.js:129:1)
at vector_tile_source.js:125:1
at s (load_tilejson.js:27:1)
tile_id.js:32 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
at kh.url (tile_id.js:32:1)
at Ie.loadTile (vector_tile_source.js:215:1)
at sy._loadTile (source_cache.js:151:1)
at sy._addTile (source_cache.js:766:1)
at sy._updateRetainedTiles (source_cache.js:632:1)
at sy.update (source_cache.js:534:1)
at Qt._updateSources (style.js:1698:1)
at Map._render (map.js:3224:1)
at map._render (mapbox.ts:561:1)
at map.js:3578:1
My current process has been this:
create the tiles: tippecanoe -e ./mytilesfolder mygeojsonfile.geojson. The geojson's projection is EPSG:4326.
Is there anything I'm doing wrong? Am I supposed to use to set the -s flag to web mercator? Am I supposed to remove compression? Is the s3 sync command missing something, or am I using the wrong parameters?
Hi, I'm trying to create a tileset from a big geojson file and to serve it directly from s3. The pbf files get created (I can view them in Qgis) but when I load the tileset in mapbox I get these errors:
My current process has been this:
tippecanoe -e ./mytilesfolder mygeojsonfile.geojson
. The geojson's projection is EPSG:4326.upload to s3:
aws s3 sync . s3://mybucket/tilesfolder/ --acl public-read --cache-control max-age=60 --content-encoding gzip --content-type application/x-protobuf
Is there anything I'm doing wrong? Am I supposed to use to set the -s flag to web mercator? Am I supposed to remove compression? Is the s3 sync command missing something, or am I using the wrong parameters?
Any help would be much appreciated, thanks!