Skip to content

Commit f8c7dea

Browse files
committed
Add note that sfc_POINT is accepted for markers
1 parent ee0ecaa commit f8c7dea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

markers.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Use markers to call out points on the map. Marker locations are expressed in lat
1111
Point data for markers can come from a variety of sources:
1212

1313
- `SpatialPoints` or `SpatialPointsDataFrame` objects (from the `sp` package)
14-
- `POINT` objects (from the `sf` package); only `X` and `Y` dimensions will be considered
14+
- `POINT`, `sfc_POINT`, and `sf` objects (from the `sf` package); only `X` and `Y` dimensions will be considered
1515
- Two-column numeric matrices (first column is longitude, second is latitude)
1616
- Data frame with latitude and logitude columns. You can explicitly tell the marker function which columns contain the coordinate data (e.g. `addMarkers(lng = ~Longitude, lat = ~Latitude)`), or let the function look for columns named `lat`/`latitude` and `lon`/`lng`/`long`/`longitude` (case insensitive).
1717
- Simply provide numeric vectors as `lng` and `lat` arguments

markers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ <h3>Data sources</h3>
210210
<p>Point data for markers can come from a variety of sources:</p>
211211
<ul>
212212
<li><code>SpatialPoints</code> or <code>SpatialPointsDataFrame</code> objects (from the <code>sp</code> package)</li>
213-
<li><code>POINT</code> objects (from the <code>sf</code> package); only <code>X</code> and <code>Y</code> dimensions will be considered</li>
213+
<li><code>POINT</code>, <code>sfc_POINT</code>, and <code>sf</code> objects (from the <code>sf</code> package); only <code>X</code> and <code>Y</code> dimensions will be considered</li>
214214
<li>Two-column numeric matrices (first column is longitude, second is latitude)</li>
215215
<li>Data frame with latitude and logitude columns. You can explicitly tell the marker function which columns contain the coordinate data (e.g. <code>addMarkers(lng = ~Longitude, lat = ~Latitude)</code>), or let the function look for columns named <code>lat</code>/<code>latitude</code> and <code>lon</code>/<code>lng</code>/<code>long</code>/<code>longitude</code> (case insensitive).</li>
216216
<li>Simply provide numeric vectors as <code>lng</code> and <code>lat</code> arguments</li>

0 commit comments

Comments
 (0)