Open joto opened 6 years ago
Are you already working on this? The examples layers seem to include some style infos.
Those were just dummies I wrote down when thinking about this. I don't have a clear idea how to approach this yet. I want something that has good defaults so it works in 90% of the cases out of the box and then maybe a few options (like color) for the next 9% and the 1% left over we just can't do and you have to write a special tool for that.
Also this is very much tied to the question of how to show multiple layers at the same time. It is something I would like to have but I do see the problems involved, mostly the complexity in the UI and the rendering. If you have a finite set of layers, you can style them all in a way that they will fit together, but with an open ended set of layers, we might need a different approach (like giving random colors to layers when they are switched on, possibly allowing users to change them).
Currently I see these cases:
Ideas welcome!
for the next 9% and the 1% left over
What about an optional style_url
for the layer JSON file which points to a MB Style Object?
This could be used with ol-mapbox-style for advanced styling (and replaces the defaults).
Currently all layers use the same hardcoded styling with red dots/lines. It would be nice if layers could (within reason) set or, at least, "suggest" some styling. This would allow more natural styling (blue lines for waterways in some layer or similar) and it is needed when we want to show multiple layers at once.
We have also to consider the "hilight style" used when a feature is selected.