@@ -35,6 +35,16 @@ const StyleMapsPanel = (props, {localize: _}) => (
3535 < Numeric label = { _ ( 'Zoom Level' ) } attr = "zoom" min = { 0 } />
3636 < Numeric label = { _ ( 'Bearing' ) } attr = "bearing" />
3737 < 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+ />
3848 </ PlotlySection >
3949
4050 < PlotlySection name = { _ ( 'Map Projection' ) } >
@@ -84,6 +94,28 @@ const StyleMapsPanel = (props, {localize: _}) => (
8494 { label : _ ( 'Sinusoidal' ) , value : 'sinusoidal' } ,
8595 ] }
8696 />
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+ />
87119 </ PlotlySection >
88120
89121 < PlotlySection name = { _ ( 'Country Borders' ) } attr = "showcountries" >
@@ -172,21 +204,6 @@ const StyleMapsPanel = (props, {localize: _}) => (
172204 < Numeric label = { _ ( 'Width' ) } attr = "framewidth" units = "px" />
173205 < ColorPicker label = { _ ( 'Color' ) } attr = "framecolor" />
174206 </ 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 >
190207 </ SubplotAccordion >
191208) ;
192209
0 commit comments