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>where
RawVecInner: Send,
RawTable<usize>: Send,
BoxRaw<Op>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, Name, LeafOrInternal>: Send,
BoxRaw<(String, Name)>: Send,
NodeRef<Owned, String, RoadClassSpec, LeafOrInternal>: Send,
BoxRaw<(String, RoadClassSpec)>: Send,
&'static str: Send,
BoxRaw<Expr>: Send,
Arc<Mutex<HashMap<String, Option<Look>>>>: Send,
BoxRaw<Grammar>: Send,
BoxRaw<Proj>: Send,
RawTable<(String, Arg)>: Send,
impl<'g> Sync for FeaturesApi<'g>where
RawVecInner: Sync,
RawTable<usize>: Sync,
BoxRaw<Op>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, Name, LeafOrInternal>: Sync,
BoxRaw<(String, Name)>: Sync,
NodeRef<Owned, String, RoadClassSpec, LeafOrInternal>: Sync,
BoxRaw<(String, RoadClassSpec)>: Sync,
BoxRaw<Expr>: Sync,
Arc<Mutex<HashMap<String, Option<Look>>>>: Sync,
BoxRaw<Grammar>: Sync,
BoxRaw<Proj>: Sync,
RawTable<(String, Arg)>: Sync,
impl<'g> Unpin for FeaturesApi<'g>
impl<'g> UnsafeUnpin for FeaturesApi<'g>where
&'g mut Graph: UnsafeUnpin,
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