use crate::projection::BoundingBox;
use geo_types::Polygon;
#[derive(Debug, Clone)]
pub struct SvgContext {
pub mercator_bbox: BoundingBox,
pub size: f64,
pub x_scaling_factor: f64,
pub y_scaling_factor: f64,
pub image_polygon: Polygon<f64>,
}
impl SvgContext {
pub fn new(
mercator_bbox: BoundingBox,
size: f64,
x_scaling_factor: f64,
y_scaling_factor: f64,
image_polygon: Polygon<f64>,
) -> Self {
Self {
mercator_bbox,
size,
x_scaling_factor,
y_scaling_factor,
image_polygon,
}
}
}