gm3 icon indicating copy to clipboard operation
gm3 copied to clipboard

Add doc/examples on style options

Open brentfraser opened this issue 4 years ago • 4 comments

Expand demo to show color by expression in style def:

    <map-source name="places" type="geojson" title="Cities and Villages" >
        <url>./places.geojson</url>
        <layer name="default">
            <style><![CDATA[
            {
                "fill-opacity": 0.60,
                "fill-color" : [
                  "match",
                  ["get","name"],
                  "Hastings",
                  "red",
                  "Bloomington",
                  "green",
                  "grey"
                ],
                "line-width" : 5,
                "text-field": ["get", "name"],
                "text-allow-overlap": false
            }
            ]]></style>

            <template name="identify" auto="true" />
        </layer>
    </map-source>

image

brentfraser avatar Jun 26 '20 16:06 brentfraser