Skip to content

Commit a82467e

Browse files
tweak geo-style
1 parent 7770225 commit a82467e

File tree

1 file changed

+36
-22
lines changed

1 file changed

+36
-22
lines changed

src/default_panels/StyleLayoutPanel.js

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,36 +70,30 @@ const StyleLayoutPanel = (props, {localize: _}) => (
7070
<Numeric label={_('Padding')} attr="margin.pad" units="px" />
7171
</PlotlyFold>
7272
<PlotlyFold name={_('Geo Style')}>
73-
<PlotlySection name={_('Land')} attr="geo.showland">
74-
<Radio
75-
attr="geo.showland"
76-
options={[
77-
{label: _('Show'), value: true},
78-
{label: _('Hide'), value: false},
79-
]}
80-
/>
81-
<ColorPicker label={_('Color')} attr="geo.landcolor" />
82-
</PlotlySection>
83-
<PlotlySection name={_('Lakes')} attr="geo.showlakes">
73+
<PlotlySection name={_('Country Borders')} attr="geo.showcountries">
8474
<Radio
85-
attr="geo.showlakes"
75+
attr="geo.showcountries"
8676
options={[
8777
{label: _('Show'), value: true},
8878
{label: _('Hide'), value: false},
8979
]}
9080
/>
91-
<ColorPicker label={_('Color')} attr="geo.lakecolor" />
81+
<Numeric label={_('Border Width')} attr="geo.countrywidth" units="px" />
82+
<ColorPicker label={_('Border Color')} attr="geo.countrycolor" />
9283
</PlotlySection>
93-
<PlotlySection name={_('Rivers')} attr="geo.showrivers">
84+
<PlotlySection
85+
name={_('Sub-Country Unit Borders')}
86+
attr="geo.showsubunits"
87+
>
9488
<Radio
95-
attr="geo.showrivers"
89+
attr="geo.showsubunits"
9690
options={[
9791
{label: _('Show'), value: true},
9892
{label: _('Hide'), value: false},
9993
]}
10094
/>
101-
<Numeric label={_('Width')} attr="geo.riverwidth" units="px" />
102-
<ColorPicker label={_('Color')} attr="geo.rivercolor" />
95+
<Numeric label={_('Border Width')} attr="geo.subunitwidth" units="px" />
96+
<ColorPicker label={_('Border Color')} attr="geo.subunitcolor" />
10397
</PlotlySection>
10498
<PlotlySection name={_('Coastlines')} attr="geo.showcoastlines">
10599
<Radio
@@ -122,18 +116,38 @@ const StyleLayoutPanel = (props, {localize: _}) => (
122116
/>
123117
<ColorPicker label={_('Color')} attr="geo.oceancolor" />
124118
</PlotlySection>
125-
<PlotlySection name={_('Countries')} attr="geo.showcountries">
119+
<PlotlySection name={_('Land')} attr="geo.showland">
126120
<Radio
127-
attr="geo.showcountries"
121+
attr="geo.showland"
128122
options={[
129123
{label: _('Show'), value: true},
130124
{label: _('Hide'), value: false},
131125
]}
132126
/>
133-
<Numeric label={_('Border Width')} attr="geo.countrywidth" units="px" />
134-
<ColorPicker label={_('Border Color')} attr="geo.countrycolor" />
127+
<ColorPicker label={_('Color')} attr="geo.landcolor" />
128+
</PlotlySection>
129+
<PlotlySection name={_('Lakes')} attr="geo.showlakes">
130+
<Radio
131+
attr="geo.showlakes"
132+
options={[
133+
{label: _('Show'), value: true},
134+
{label: _('Hide'), value: false},
135+
]}
136+
/>
137+
<ColorPicker label={_('Color')} attr="geo.lakecolor" />
138+
</PlotlySection>
139+
<PlotlySection name={_('Rivers')} attr="geo.showrivers">
140+
<Radio
141+
attr="geo.showrivers"
142+
options={[
143+
{label: _('Show'), value: true},
144+
{label: _('Hide'), value: false},
145+
]}
146+
/>
147+
<Numeric label={_('Width')} attr="geo.riverwidth" units="px" />
148+
<ColorPicker label={_('Color')} attr="geo.rivercolor" />
135149
</PlotlySection>
136-
<PlotlySection name={_('Frame')} attr="geo.showframe">
150+
<PlotlySection name={_('Map Frame')} attr="geo.showframe">
137151
<Radio
138152
attr="geo.showframe"
139153
options={[

0 commit comments

Comments
 (0)