digidem / mapeo-map-server

Offline map style and tile server
MIT License
5 stars 2 forks source link

Provide style information in initial response payload when importing a tileset #81

Closed achou11 closed 1 year ago

achou11 commented 1 year ago

After some usage on the application side, it would be nice to get style id associated with an import in the response to the /tilesets/import endpoint. The proposed solution is to add a style field such that the endpoint payload is:

{
  tileset: TileJSON,
  style?: { id: string },
  import: { id: string }
}

We may be interested in including more info in the future, but the id should be enough for now