Closed bartvde closed 12 years ago
One thought: if you set the background color on the base layer's div instead of the MapPanel's body, we would have everything in one place. Regarding the baseLayerConfig, I like map->wrapDateLine and map->numZoomLevels better.
In addition to these settings, would it make sense to add an option to set a restrictedExtent?
Finally I'm wondering how we could have a "None" base layer without adding another blank layer. Maybe with a config option on the LayerTree plugin, something like "showNoneBaseMap"? This would then be a plain treenode that cannot be deleted.
@ahocevar Wrt the LayerTree change, this is less trivial than I thought it was, so I'll mark it as a TODO if that's okay with you? I think we can add restrictedExtent when the need for this arises or not?
Yes, add a TODO for the layer tree change, and let's do restrictedExtent when we need it. Thanks for your work on this!
Wrt the TODO, I've opened up #123 for this.
I guess we still need a way to specify the defaults on the viewer, should we use map->wrapDateLine and map->numZoomLevels or wrap them in map->baseLayerConfig ?