Skip to content

Commit

Permalink
Merge pull request #884 from theduckylittle/gm-798/fix-points-styles
Browse files Browse the repository at this point in the history
Fix point styles
  • Loading branch information
klassenjs authored Nov 8, 2024
2 parents 61c98bf + ed2ef85 commit ec90cbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/desktop/mapbook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
<layer name="default" selectable="true" status="on">
<style><![CDATA[
{
"circle-radius": ["coalesce", ["get", "style:stroke-width"], 4],
"circle-radius": ["coalesce", ["get", "style:circle-radius"], 10],
"circle-color": ["coalesce", ["get", "style:fill-color"], "#fec44f"],
"circle-stroke-color": ["coalesce", ["get", "style:stroke-color"], "#d95f0e"],
"circle-stroke-width": ["coalesce", ["get", "style:stroke-width"], 4],
"circle-stroke-opacity": ["coalesce", ["get", "style:stroke-opacity"], 0.8],
"circle-opacity": ["coalesce", ["get", "style:fill-opacity"], 0.6],
"fill-color": ["coalesce", ["get", "style:fill-color"], "#fec44f"],
"fill-opacity": ["coalesce", ["get", "style:fill-opacity"], 0.6],
"line-color": ["coalesce", ["get", "style:stroke-color"], "#d95f0e"],
Expand Down Expand Up @@ -53,6 +56,9 @@
<property name="style:stroke-width"
label="Stroke size" type="range" min="0" max="10" default="4" />

<property name="style:circle-radius"
label="Point size" type="range" min="2" max="25" default="4" />

<property name="style:stroke-opacity"
label="Stroke opacity" type="range"
min="0" max="1" step="0.1" default="0.8" />
Expand Down

0 comments on commit ec90cbe

Please sign in to comment.