@@ -35,6 +35,16 @@ const StyleMapsPanel = (props, {localize: _}) => (
35
35
< Numeric label = { _ ( 'Zoom Level' ) } attr = "zoom" min = { 0 } />
36
36
< Numeric label = { _ ( 'Bearing' ) } attr = "bearing" />
37
37
< Numeric label = { _ ( 'Pitch' ) } attr = "pitch" min = { 0 } />
38
+ < Dropdown
39
+ label = { _ ( 'Bounds Fitting' ) }
40
+ attr = "fitbounds"
41
+ options = { [
42
+ { label : _ ( 'Off' ) , value : false } ,
43
+ { label : _ ( 'Locations' ) , value : 'locations' } ,
44
+ { label : _ ( 'GeoJSON' ) , value : 'geojson' } ,
45
+ ] }
46
+ clearable = { false }
47
+ />
38
48
</ PlotlySection >
39
49
40
50
< PlotlySection name = { _ ( 'Map Projection' ) } >
@@ -84,6 +94,28 @@ const StyleMapsPanel = (props, {localize: _}) => (
84
94
{ label : _ ( 'Sinusoidal' ) , value : 'sinusoidal' } ,
85
95
] }
86
96
/>
97
+ < Numeric label = { _ ( 'Scale' ) } attr = "projection.scale" min = { 0 } />
98
+ < Numeric label = { _ ( 'Center Latitude' ) } attr = "projection.rotation.lon" min = { 0 } />
99
+ < Numeric label = { _ ( 'Center Longitude' ) } attr = "projection.rotation.lat" min = { 0 } />
100
+ < Numeric label = { _ ( 'Roll' ) } attr = "projection.rotation.roll" min = { 0 } />
101
+ </ PlotlySection >
102
+
103
+ < PlotlySection name = { _ ( 'Base Map' ) } attr = "visible" >
104
+ < Radio
105
+ attr = "visible"
106
+ options = { [
107
+ { label : _ ( 'Show' ) , value : true } ,
108
+ { label : _ ( 'Hide' ) , value : false } ,
109
+ ] }
110
+ />
111
+ < Radio
112
+ label = { _ ( 'Resolution' ) }
113
+ attr = "resolution"
114
+ options = { [
115
+ { label : _ ( '1:110,000,000' ) , value : 110 } ,
116
+ { label : _ ( '1:50,000,000' ) , value : 50 } ,
117
+ ] }
118
+ />
87
119
</ PlotlySection >
88
120
89
121
< PlotlySection name = { _ ( 'Country Borders' ) } attr = "showcountries" >
@@ -172,21 +204,6 @@ const StyleMapsPanel = (props, {localize: _}) => (
172
204
< Numeric label = { _ ( 'Width' ) } attr = "framewidth" units = "px" />
173
205
< ColorPicker label = { _ ( 'Color' ) } attr = "framecolor" />
174
206
</ PlotlySection >
175
-
176
- < PlotlySection name = { _ ( 'Map Options' ) } >
177
- < Radio
178
- label = { _ ( 'Resolution' ) }
179
- attr = "resolution"
180
- options = { [
181
- { label : _ ( '1:110,000,000' ) , value : 110 } ,
182
- { label : _ ( '1:50,000,000' ) , value : 50 } ,
183
- ] }
184
- />
185
- < Numeric label = { _ ( 'Scale' ) } attr = "projection.scale" min = { 0 } />
186
- < Numeric label = { _ ( 'Latitude' ) } attr = "projection.rotation.lon" min = { 0 } />
187
- < Numeric label = { _ ( 'Longitude' ) } attr = "projection.rotation.lat" min = { 0 } />
188
- < Numeric label = { _ ( 'Roll' ) } attr = "projection.rotation.roll" min = { 0 } />
189
- </ PlotlySection >
190
207
</ SubplotAccordion >
191
208
) ;
192
209
0 commit comments