mapbox / tilelive-omnivore

Implements the tilelive api for a variety of data sources
ISC License
8 stars 11 forks source link

Layer name overrides #28

Closed rclark closed 8 years ago

rclark commented 8 years ago

We should allow the caller to override layer names in output vector tiles for certain types of files. This will not pertain to file types with multiple internal layers (KML, GPX, mbtiles), but will apply to other file types.

The order of selection ought to be:

  1. layer is named based on the provided layerName
  2. for geojson, csv, tif, default to the file's name (with extension stripped) if no override is provided
  3. for shapefiles, default to the intrinsic name provided by the data