wdtinc / mapbox-vector-tile-java

Java Mapbox Vector Tile Library for Encoding/Decoding
Apache License 2.0
147 stars 73 forks source link

Question: createTileGeom Envelope/MvtLayerParams #47

Open jfuehner opened 4 years ago

jfuehner commented 4 years ago

Hi! I am working on building a simple MVT service to be used by Mapbox.gl but am a little confused with the createTileGeom function signature.

I have a service endpoint...

http://localhost/tiles/{z}/{x}/{y}

Both the Envelope and MvtLayerParams appear to take in x/y or an extent. How might I go about only displaying tiles that are within the users viewable extent with only the z/x/y are sent to the server?