Skip to content

Commit

Permalink
Add setter for Mapbox::domain (#180)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored May 10, 2024
1 parent ba867e0 commit eef27cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
## [0.8.5] - 2024-xx-xx
### Added
- [[#181](https://github.com/igiagkiozis/plotly/pull/181)] Fix compilation error when mixing the crate with `askama/with-axum` by adding `with-axum` feature.
- [[#180](https://github.com/igiagkiozis/plotly/pull/180)] Add setter for `Mapbox::domain`.
- [[#163](https://github.com/plotly/plotly.rs/pull/163)] Added `DensityMapbox`.
- [[#153](https://github.com/igiagkiozis/plotly/pull/153)] Added `LayoutScene`.

Expand Down
3 changes: 3 additions & 0 deletions plotly/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use plotly_derive::FieldSetter;
use serde::{Serialize, Serializer};
use update_menu::UpdateMenu;

use crate::common::Domain;
use crate::{
color::Color,
common::{
Expand Down Expand Up @@ -1370,6 +1371,8 @@ pub struct Mapbox {
bearing: Option<f64>,
/// Sets the latitude and longitude of the center of the map.
center: Option<Center>,
/// Sets the domain within which the mapbox will be drawn.
domain: Option<Domain>,
/// Sets the pitch angle of the map in degrees, where `0` means
/// perpendicular to the surface of the map.
pitch: Option<f64>,
Expand Down

0 comments on commit eef27cd

Please sign in to comment.