-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patched Mapbox GL Spec #10
Comments
Are you talking about e.g. https://github.com/mapbox/mapbox-gl-style-spec/blob/mb-pages/reference/v8.json? In general, I like the idea. I'm just wondering what would be the best way to implement it. Ideally, unsupported features would just be commented out, but JSON does not allow comments. On the other hand, if unsupported features are removed from the spec, it will be harder to add them back later. Do you have any thoughts on this? |
Yes.
Perhaps fork and add ol-mapbox-style the "sdk-support": {
"basic functionality": {
"js": "0.10.0",
"android": "2.0.1",
"ios": "2.0.0",
"macos": "0.1.0"
} |
So you mean something like
I agree that doing this is the cleanest way. If you agree, before creating a fork, I'd create an upstream ticket with the suggestion - maybe it can even be added there. |
Good idea, try that. I think the chances are not so big but upstream would be the best way. |
@lukasmartinelli I think you can create a pull request against https://github.com/mapbox/mapbox-gl-style-spec. I'll take care of the formal requirements once you have submitted it. Just reference the pull request here. |
Hey @ahocevar did you get anywhere with this? I noticed in mapbox/mapbox-gl-js#4170 (comment) you were planning to work on it. Also congrats on the improvements to |
@orangemug I still didn't find time to do this, but it's still high on my list. |
Thanks for the response @ahocevar. I really want to get OpenLayers properly supported in Maputnik so anything I can do to help just shout. We've still got a little bit of work to do Maputnik side also, see https://github.com/maputnik/editor/issues?q=is%3Aissue+is%3Aopen+label%3Aopenlayers Note: I had a look into this over the weekend, I was thinking visual regression type tests might be quite nice. Basically some GeoJSON + styling for each style rule that's in the Mapbox GL style spec. |
@ahocevar I'm going to give this a go, see where I can get to. I've started over at https://maparatus.github.io/ol-mapbox-style-spec/ I'm going to build a bunch of test styles to see the visual differences between |
I've update https://maparatus.github.io/ol-mapbox-style-spec/ with a bunch more examples. Some notable differences
|
Here is how the maplibre compatibility support is going so far, results are in the ol-mapbox-style-spec repo and the spec is at Any feedback welcome (and encouraged) Key for the results:
Results:
|
@ahocevar Would it make sense to have a patched Mapbox GL spec that only contains the properties and layer types that are supported by
ol-mapbox-style
?I would take care of it. It could be in this repo or in another one.
For https://github.com/maputnik/editor this would allow me to only display properties for a OL3 style that can be supported.
And in general it would help to specify and document the subset of the Mapbox GL spec that is supported by
ol-mapbox-style
.As always - I love this plugin.
The text was updated successfully, but these errors were encountered: