From eef27cd9f004e92c003bfd3386e3668c380afc0e Mon Sep 17 00:00:00 2001 From: "Seb. V" Date: Fri, 10 May 2024 12:57:38 +0200 Subject: [PATCH] Add setter for Mapbox::domain (#180) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add setter for Mapbox::domain * apply cargo fmt Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> * update CHANGELOG Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --------- Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Co-authored-by: Sébastien Vauclair Co-authored-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- CHANGELOG.md | 1 + plotly/src/layout/mod.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbc3a1de..cbdca818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/plotly/src/layout/mod.rs b/plotly/src/layout/mod.rs index 6026e6ed..55e2dfd8 100644 --- a/plotly/src/layout/mod.rs +++ b/plotly/src/layout/mod.rs @@ -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::{ @@ -1370,6 +1371,8 @@ pub struct Mapbox { bearing: Option, /// Sets the latitude and longitude of the center of the map. center: Option
, + /// Sets the domain within which the mapbox will be drawn. + domain: Option, /// Sets the pitch angle of the map in degrees, where `0` means /// perpendicular to the surface of the map. pitch: Option,