t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
556 stars 69 forks source link

First T-rex webmap #233

Open Vangogh-dev opened 3 years ago

Vangogh-dev commented 3 years ago

Hello,

I am working on a project that needs a vector tile map. I am using postgresql with geofabrik data imported with osm2pgsql and t-rex to serve it. I can display data from my db but the goal is to display a basemap to load geojson on top. What is the next step to get my basemap ? I am a bit lost in the web map/geographic data community because i am just begining. t_rex_alsace_roads Here is what t-rex is displaying from the db

PS : one of my late goal is to display 3d building so if you have solutions or info about that i would love to ear it.

pka commented 3 years ago

Is the title an error message you got? t-rex does only serve or generate vector tiles. You need a viewer library like mapbox-gl or OpenLayers to create a web map with overlays. Or you just want to view your data locally? Then QGIS would support that.

Vangogh-dev commented 3 years ago

Is the title an error message you got? t-rex does only serve or generate vector tiles. You need a viewer library like mapbox-gl or OpenLayers to create a web map with overlays. Or you just want to view your data locally? Then QGIS would support that.

Hello thanks for your reply, no there is not any error when loading the tiles. The goal is to display some data on top of the basemap. just like roads, buildings etc on a web browser. i've never QGIS btw. As i undestant i need a library to display all layer at same time to build a "real" basemap ? What should be the next step ?

chris-aeviator commented 3 years ago

I use https://github.com/visgl/deck.gl and import the url that trex tells me ( the http://…/{x}/{y}.pbf URL) with a https://deck.gl/docs/api-reference/geo-layers/mvt-layer . You can use many different basemaps with deck.gl