mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

indicate geometry type in layer inspector #543

Open ian29 opened 10 years ago

ian29 commented 10 years ago

As more people start using vt sources that they did not create, indicating which type of geometry (point/line/polygon/geometry/raster) is contained in each layer will make styling more straightforward.

this can be as simple as the geometry icons in tilemill:

yhahn commented 10 years ago

y it's not perfect given mixed geometry types but I think mapnik attempts to detect this atm based on the first feature in the ds.

springmeyer commented 10 years ago

Noting: currently geometry type detection against vector tiles is a no-op: https://github.com/mapbox/mapnik-vector-tile/blob/6ed7f9f8495bf04e13808e068125a543a53280bf/src/vector_tile_datasource.hpp#L366-L369