@@ -1453,6 +1453,57 @@ impl Mapbox {
14531453 }
14541454}
14551455
1456+ #[ derive( Serialize , Clone , Debug ) ]
1457+ #[ serde( rename_all = "kebab-case" ) ]
1458+ pub enum MapboxStyle {
1459+ #[ serde( rename = "carto-darkmatter" ) ]
1460+ CartoDarkMatter ,
1461+ CartoPositron ,
1462+ OpenStreetMap ,
1463+ StamenTerrain ,
1464+ StamenToner ,
1465+ StamenWatercolor ,
1466+ WhiteBg ,
1467+ Basic ,
1468+ Streets ,
1469+ Outdoors ,
1470+ Light ,
1471+ Dark ,
1472+ Satellite ,
1473+ SatelliteStreets ,
1474+ }
1475+
1476+ #[ derive( Serialize , Clone , Debug , FieldSetter ) ]
1477+ pub struct Geo {
1478+ /// Sets the geo access token to be used for this geo map. Note that
1479+ /// `access_token`s are only required when `style` (e.g with values: basic,
1480+ /// streets, outdoors, light, dark, satellite, satellite-streets)
1481+ /// and/or a layout layer references the Mapbox server.
1482+ #[ serde( rename = "accesstoken" ) ]
1483+ access_token : Option < String > ,
1484+ /// Sets the bearing angle of the map in degrees counter-clockwise from
1485+ /// North.
1486+ bearing : Option < f64 > ,
1487+ /// Sets the latitude and longitude of the center of the map.
1488+ center : Option < Center > ,
1489+ /// Sets the domain within which the mapbox will be drawn.
1490+ domain : Option < Domain > ,
1491+ /// Sets the pitch angle of the map in degrees, where `0` means
1492+ /// perpendicular to the surface of the map.
1493+ pitch : Option < f64 > ,
1494+ /// Sets the style of the map.
1495+ style : Option < MapboxStyle > ,
1496+ /// Sets the zoom level of the map.
1497+ zoom : Option < u8 > ,
1498+ }
1499+
1500+ impl Geo {
1501+ pub fn new ( ) -> Self {
1502+ Default :: default ( )
1503+ }
1504+ }
1505+
1506+
14561507#[ derive( Serialize , Debug , Clone ) ]
14571508/// If "cube", this scene's axes are drawn as a cube, regardless of the axes'
14581509/// ranges. If "data", this scene's axes are drawn in proportion with the axes'
0 commit comments