mln-rs-style 0.0.21

Part of mln-rs, a MapLibre map renderer written in Rust. Depend on mln-rs instead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// A sprite that a style names: its id, and the URL its images and index
/// load from.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Sprite {
    pub id: String,
    pub sprite_url: String,
}

impl Sprite {
    pub fn new(id: impl Into<String>, sprite_url: impl Into<String>) -> Self {
        Sprite { id: id.into(), sprite_url: sprite_url.into() }
    }
}