Skip to content

Commit 27ce988

Browse files
Merge pull request #597 from plotly/geo2
tweak geo-style
2 parents 8ec3b50 + c1de999 commit 27ce988

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
@@ -61,36 +61,30 @@ const StyleLayoutPanel = (props, {localize: _}) => (
6161
<Numeric label={_('Padding')} attr="margin.pad" units="px" />
6262
</PlotlyFold>
6363
<PlotlyFold name={_('Geo Style')}>
64-
<PlotlySection name={_('Land')} attr="geo.showland">
65-
<Radio
66-
attr="geo.showland"
67-
options={[
68-
{label: _('Show'), value: true},
69-
{label: _('Hide'), value: false},
70-
]}
71-
/>
72-
<ColorPicker label={_('Color')} attr="geo.landcolor" />
73-
</PlotlySection>
74-
<PlotlySection name={_('Lakes')} attr="geo.showlakes">
64+
<PlotlySection name={_('Country Borders')} attr="geo.showcountries">
7565
<Radio
76-
attr="geo.showlakes"
66+
attr="geo.showcountries"
7767
options={[
7868
{label: _('Show'), value: true},
7969
{label: _('Hide'), value: false},
8070
]}
8171
/>
82-
<ColorPicker label={_('Color')} attr="geo.lakecolor" />
72+
<Numeric label={_('Border Width')} attr="geo.countrywidth" units="px" />
73+
<ColorPicker label={_('Border Color')} attr="geo.countrycolor" />
8374
</PlotlySection>
84-
<PlotlySection name={_('Rivers')} attr="geo.showrivers">
75+
<PlotlySection
76+
name={_('Sub-Country Unit Borders')}
77+
attr="geo.showsubunits"
78+
>
8579
<Radio
86-
attr="geo.showrivers"
80+
attr="geo.showsubunits"
8781
options={[
8882
{label: _('Show'), value: true},
8983
{label: _('Hide'), value: false},
9084
]}
9185
/>
92-
<Numeric label={_('Width')} attr="geo.riverwidth" units="px" />
93-
<ColorPicker label={_('Color')} attr="geo.rivercolor" />
86+
<Numeric label={_('Border Width')} attr="geo.subunitwidth" units="px" />
87+
<ColorPicker label={_('Border Color')} attr="geo.subunitcolor" />
9488
</PlotlySection>
9589
<PlotlySection name={_('Coastlines')} attr="geo.showcoastlines">
9690
<Radio
@@ -113,18 +107,38 @@ const StyleLayoutPanel = (props, {localize: _}) => (
113107
/>
114108
<ColorPicker label={_('Color')} attr="geo.oceancolor" />
115109
</PlotlySection>
116-
<PlotlySection name={_('Countries')} attr="geo.showcountries">
110+
<PlotlySection name={_('Land')} attr="geo.showland">
117111
<Radio
118-
attr="geo.showcountries"
112+
attr="geo.showland"
119113
options={[
120114
{label: _('Show'), value: true},
121115
{label: _('Hide'), value: false},
122116
]}
123117
/>
124-
<Numeric label={_('Border Width')} attr="geo.countrywidth" units="px" />
125-
<ColorPicker label={_('Border Color')} attr="geo.countrycolor" />
118+
<ColorPicker label={_('Color')} attr="geo.landcolor" />
119+
</PlotlySection>
120+
<PlotlySection name={_('Lakes')} attr="geo.showlakes">
121+
<Radio
122+
attr="geo.showlakes"
123+
options={[
124+
{label: _('Show'), value: true},
125+
{label: _('Hide'), value: false},
126+
]}
127+
/>
128+
<ColorPicker label={_('Color')} attr="geo.lakecolor" />
129+
</PlotlySection>
130+
<PlotlySection name={_('Rivers')} attr="geo.showrivers">
131+
<Radio
132+
attr="geo.showrivers"
133+
options={[
134+
{label: _('Show'), value: true},
135+
{label: _('Hide'), value: false},
136+
]}
137+
/>
138+
<Numeric label={_('Width')} attr="geo.riverwidth" units="px" />
139+
<ColorPicker label={_('Color')} attr="geo.rivercolor" />
126140
</PlotlySection>
127-
<PlotlySection name={_('Frame')} attr="geo.showframe">
141+
<PlotlySection name={_('Map Frame')} attr="geo.showframe">
128142
<Radio
129143
attr="geo.showframe"
130144
options={[

0 commit comments

Comments
 (0)