mapbox/tilejson-spec

Add background color property

ansis opened this issue · 3 comments

The property would be a suggested background color for the map div.

Setting the background color to a common map color seems to reduce the effect of background flashing when tiles are getting loaded. For mapbox streets this would be the main land color

This seems like it might be going beyond the scope of tilejson-spec though?

I think we should keep the tilejson spec to what's functionally necessary for displaying a map. It seems additional keys like this are fair game to add in particular applications and implementations of tilejson without being part of the spec.

On MapBox we use a matte key internally for this -- maybe something we can expose publicly in the API?

That sounds good to me

I think we should keep the tilejson spec to what's functionally necessary for displaying a map. It seems additional keys like this are fair game to add in particular applications and implementations of tilejson without being part of the spec.

per Young’s comment above, closing as out of scope of tilejson spec. Color and other map style properties are separate from the metadata of a tileset.