Skip to content

Commit eef27cd

Browse files
sebdotvseb-skyandrei-ng
authored
Add setter for Mapbox::domain (#180)
* Add setter for Mapbox::domain * apply cargo fmt Signed-off-by: Andrei Gherghescu <[email protected]> * update CHANGELOG Signed-off-by: Andrei Gherghescu <[email protected]> --------- Signed-off-by: Andrei Gherghescu <[email protected]> Co-authored-by: Sébastien Vauclair <[email protected]> Co-authored-by: Andrei Gherghescu <[email protected]>
1 parent ba867e0 commit eef27cd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66
## [0.8.5] - 2024-xx-xx
77
### Added
88
- [[#181](https://github.com/igiagkiozis/plotly/pull/181)] Fix compilation error when mixing the crate with `askama/with-axum` by adding `with-axum` feature.
9+
- [[#180](https://github.com/igiagkiozis/plotly/pull/180)] Add setter for `Mapbox::domain`.
910
- [[#163](https://github.com/plotly/plotly.rs/pull/163)] Added `DensityMapbox`.
1011
- [[#153](https://github.com/igiagkiozis/plotly/pull/153)] Added `LayoutScene`.
1112

Diff for: plotly/src/layout/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use plotly_derive::FieldSetter;
77
use serde::{Serialize, Serializer};
88
use update_menu::UpdateMenu;
99

10+
use crate::common::Domain;
1011
use crate::{
1112
color::Color,
1213
common::{
@@ -1370,6 +1371,8 @@ pub struct Mapbox {
13701371
bearing: Option<f64>,
13711372
/// Sets the latitude and longitude of the center of the map.
13721373
center: Option<Center>,
1374+
/// Sets the domain within which the mapbox will be drawn.
1375+
domain: Option<Domain>,
13731376
/// Sets the pitch angle of the map in degrees, where `0` means
13741377
/// perpendicular to the surface of the map.
13751378
pitch: Option<f64>,

0 commit comments

Comments
 (0)