Page MenuHomePhabricator

Add field descriptions to vector tile tilejson
Open, LowestPublic

Description

It violates the TileJSON spec, but Mapbox Studio Classic expects an object with a key of vector_layers in https://maps.wikimedia.org/osm-pbf/info.json

The usual way to do this is have a fields key in the yaml for each layer, e.g.

- id: landmark_polygon
  Datasource: 
    table: ...
    type: postgis
  minzoom: 6
  description: Area features for background drawing
  fields: 
    landmark: Landmark type
  properties: 
    "buffer-size": 2
  srs: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over

This then gets added to the tilejson by the serving software.

See https://phabricator.wikimedia.org/T159631#3079076 and https://phabricator.wikimedia.org/T159631#3080107 for more details

Event Timeline

Pnorman created this task.Mar 9 2017, 12:49 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 9 2017, 12:49 AM
Pnorman triaged this task as Lowest priority.Jul 10 2018, 4:35 PM