use maplibre_native::{GeoJsonError, StyleError};
#[non_exhaustive]
#[derive(Debug, thiserror::Error)]
pub enum ApplyError {
#[error("overlay feature {index}: failed to convert GeoJSON: {source}")]
GeoJsonConvert {
index: usize,
#[source]
source: GeoJsonError,
},
#[error("overlay {id:?}: maplibre rejected style mutation: {source}")]
Maplibre {
id: String,
#[source]
source: StyleError,
},
}