osm_native | R Documentation |
Coordinate helpers
osm_native(x, y)
osm_lnglat(lng, lat)
osm_crs_native()
osm_ensure_lnglat(pt)
osm_ensure_native(pt)
x, y |
Ordinate values in EPSG:3857 (Spherical Mercator in meters) |
lng, lat |
Coordinate values for longitude/latitude in degrees. |
pt |
A vector of points as coerced by [wk::as_xy()]. The CRS for these points is considered. |
- 'osm_native()', 'osm_lnglat()', 'osm_ensure_native()', and 'osm_ensure_lnglat()' return a [wk::xy()] with the appropriate crs - 'osm_crs_native()' returns a value that can be used as the [wk::wk_crs()] of a vector.
osm_lnglat(-64, 45)
osm_ensure_native(osm_lnglat(-64, 45))
osm_ensure_lnglat(
osm_ensure_native(osm_lnglat(-64, 45))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.