-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to load VectorTilesSource according to the slicing rules provided by postgres #2454
Comments
Hello, I tried to look at your probleme but i don't think I completly understand your need. But I did manage to use the arcgis World_Basemap_v2 VectorTileServer using the VectorTile style as describe here (https://developers.arcgis.com/documentation/portal-and-data-services/data-services/vector-tile-services/display-vector-tiles/#get-vector-tile-styles)
Doing this I encountered a bug. Indeed currently itowns.VectorTile only support absolute urls and ArcGis uses relative urls. Secondly you can use the url property when creating a VectorTileSource but you will still need to give a MVT style file associated with the data. And once again I noticed a bug, the url should be entered without $, the |
@ftoromanoff I used the PostGIS database for slicing and wrote my own HTTP interface to produce PBFs based on x, y, and z. There is no style JSON file for rendering, only URLs. I want to use the style frontend for rendering, code
Error message |
If you want to use your own MVT data flux, you will need to create and set your own Mapbox style file with all the necessary metadata (url, and description of the differents layers and their associate Mapbox style). (https://docs.mapbox.com/style-spec/reference/root/) Here an example with a flux consisting of only 1 layer of data:
What you can try to do as well is to use a TMS source if you don't want to use the Mapbox Vector Tile standard. |
We use PostGIS to provide real-time vector slice data for MapBox rules, with interface addresses of http//: ip: rot/${z}/${x}/${y} for discarding request data, and use style for style rendering work
Your Environment
##code
` var mvtSource = new itowns.VectorTilesSource({
url: 'http://ip:prot/api-server/gis-server/swgBPipeLine/tile/zxyByLevel/${z}/${x}/${y}?levels=4'
})
`
openlayer demo
The example of Openlayer below can render normally when used in 2D
https://openlayers.org/en/latest/examples/vector-tile-info.html
The text was updated successfully, but these errors were encountered: