You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/morefeatures.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -174,9 +174,9 @@ leaflet() %>% addTiles() %>%
174
174
175
175
### Advanced Features
176
176
177
-
#### Custom JavaScript with `htmlwidget::onRender`
177
+
#### Custom JavaScript with `htmlwidgets::onRender`
178
178
179
-
The `htmlwidget::onRender` function can be used to add custom behavior to the leaflet map using native Javascript. This is a some what advanced use case and requires you to know Javascript. Using `onRender` you can customize your map's behavior using any of the APIs as defined in the Leaflet.js [documentation](leafletjs.com/reference.html).
179
+
The `htmlwidgets::onRender` function can be used to add custom behavior to the leaflet map using native Javascript. This is a some what advanced use case and requires you to know Javascript. Using `onRender` you can customize your map's behavior using any of the APIs as defined in the Leaflet.js [documentation](leafletjs.com/reference.html).
180
180
181
181
Below is an example where we sync the base layer of the mini-map with the baselayer of the main map, using the 'baselayerchange' event.
0 commit comments