[][src]Struct map_gui::tools::url::URLManager

pub struct URLManager;

Utilities for reflecting the current map and viewport in the URL on the web. No effect on native.

Implementations

impl URLManager[src]

pub fn update_url_free_param(free_param: String) -> Result<()>[src]

This does nothing on native. On web, it modifies the current URL to change the first free parameter in the HTTP GET params to the specified value, adding it if needed.

pub fn update_url_cam<A: AppLike>(ctx: &EventCtx<'_>, app: &A) -> Result<()>[src]

This does nothing on native. On web, it modifies the current URL to set --cam to an OSM-style zoom/lat/lon string (https://wiki.openstreetmap.org/wiki/Browsing#Other_URL_tricks) based on the current viewport.

pub fn parse_center_camera<A: AppLike>(
    app: &A,
    raw: String
) -> Option<(Pt2D, f64)>
[src]

Parse an OSM-style zoom/lat/lon string (https://wiki.openstreetmap.org/wiki/Browsing#Other_URL_tricks), returning the map point to center on and the camera zoom.

Auto Trait Implementations

impl RefUnwindSafe for URLManager[src]

impl Send for URLManager[src]

impl Sync for URLManager[src]

impl Unpin for URLManager[src]

impl UnwindSafe for URLManager[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,