Struct map_gui::tools::URLManager [−][src]
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]
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]
app: &A,
raw: String
) -> Option<(Pt2D, f64)>
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
impl Send for URLManager
impl Sync for URLManager
impl Unpin for URLManager
impl UnwindSafe for URLManager
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,