pub struct FeaturesApi<'g>(/* private fields */);Expand description
features.*: what to read from the map.
Implementations§
Source§impl FeaturesApi<'_>
impl FeaturesApi<'_>
Sourcepub fn tiles(self, items: &[&str]) -> Result<Features>
pub fn tiles(self, items: &[&str]) -> Result<Features>
OpenFreeMap’s vector tiles: presets ("buildings") or rules ("landcover:park,garden").
Sourcepub fn osm(self, tags: Obj) -> Result<Features>
pub fn osm(self, tags: Obj) -> Result<Features>
OpenStreetMap through Overpass: { leisure: "park" }.
Sourcepub fn geojson(self, source: impl Into<Arg>) -> Result<Features>
pub fn geojson(self, source: impl Into<Arg>) -> Result<Features>
A GeoJSON dataset: a URL, a file beside the profile, or inline GeoJSON.
Sourcepub fn json(self, url: &str, paths: Obj) -> Result<Features>
pub fn json(self, url: &str, paths: Obj) -> Result<Features>
Points from plain JSON: { items, lat, lng } as dot-paths.
Sourcepub fn contours(self, options: Obj) -> Result<Features>
pub fn contours(self, options: Obj) -> Result<Features>
Contour lines from the elevation: { step, from, to, index, blur, minLength }.
Auto Trait Implementations§
impl<'g> !UnwindSafe for FeaturesApi<'g>
impl<'g> Forget for FeaturesApi<'g>
impl<'g> Freeze for FeaturesApi<'g>
impl<'g> Move for FeaturesApi<'g>
impl<'g> RefUnwindSafe for FeaturesApi<'g>
impl<'g> Send for FeaturesApi<'g>
impl<'g> Sync for FeaturesApi<'g>
impl<'g> Unpin for FeaturesApi<'g>
impl<'g> UnsafeUnpin for FeaturesApi<'g>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more