prep_overlay_markers | R Documentation |
Markers are prepared to match GeoJSON marker-spec which is a partial implementation of the GeoJSON simplestyle-spec (described as a work-in-progress by Mapbox).
prep_overlay_markers(
data = NULL,
marker_type = c("pin-s", "pin-l", "url"),
label = NA,
color = NA,
longitude = NULL,
latitude = NULL,
url = NA
)
data |
An input data frame with longitude and latitude columns (X and Y
or lon and lat as names are also acceptable) or an |
marker_type |
The marker type; one of |
label |
The marker label (optional). Can be a letter, number (0 through 99), or a valid Maki icon (see https://labs.mapbox.com/maki-icons/) for options). |
color |
The marker color (optional). |
longitude |
A vector of longitudes; inferred from the input dataset if
|
latitude |
A vector of latitudes; inferred from the input dataset if
|
url |
The URL of the image to be used for the icon if |
A formatted list of marker specifications that can be passed to the static_mapbox function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.