mapbox / tilejson-spec

JSON format for describing map tilesets.
255 stars 52 forks source link

Add background color property #9

Closed ansis closed 6 years ago

ansis commented 12 years ago

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?

yhahn commented 12 years ago

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?

ansis commented 12 years ago

That sounds good to me

GretaCB commented 6 years ago

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.