Skip to content
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

Add support for Mapbox SimpleStyle #29

Open
stefanb opened this issue Dec 17, 2018 · 1 comment
Open

Add support for Mapbox SimpleStyle #29

stefanb opened this issue Dec 17, 2018 · 1 comment
Assignees

Comments

@stefanb
Copy link

stefanb commented Dec 17, 2018

Spec: https://github.com/mapbox/simplestyle-spec

The most popular feature marker-color is the easiest to implement.

@vohtaski
Copy link
Contributor

I would be also very interested by this.
In my particular case, I need to color different types of lines for analysis.

{
    "type": "FeatureCollection",
    "features": [{ 
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [[10, 10], [20, 20]]
        },
        "properties": {
            "stroke": "#ff0000",
            "type": "short"
        }
    }, {
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [[0, 0], [100, 100]]
        },
        "properties": {
            "stroke": "#00ff00",
            "type": "long"
        }
    }]
}

vohtaski added a commit to vohtaski/vscode-map-preview that referenced this issue Jul 18, 2020
- support for lines: "stroke", "stroke-width"
- support for polygons: "fill", "stroke", "stroke-width"
- support for points: "marker-color"

added documentation with screenshots

simplestyle-spec:
https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0
jumpinjackie added a commit that referenced this issue Jul 20, 2020
partial support for Mapbox SimpleStyle (#29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants