Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Frieß committed Jan 10, 2024
1 parent dc4995e commit 474ace2
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 16 deletions.
4 changes: 3 additions & 1 deletion examples/earthquakes.R → examples/layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ earthquakes_source <- list(
data = "https://docs.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson"
)

earthquakes_layer <- layer(
earthquakes_layer <- Layer(
id = "earthquakes",
type = "circle",
source = earthquakes_source,
Expand All @@ -14,3 +14,5 @@ earthquakes_layer <- layer(

maplibre() |>
add_layer(earthquakes_layer)


9 changes: 9 additions & 0 deletions examples/markers.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
library(maplibre)
marker = Marker(
lngLat = c(9.5,51.31667),
popup = list(text = "This is a marker",options = list(closeButton = F)),
color= "darkred"
)

maplibre(mapOptions(center = c(9.5,51.31667)),zoom = 4) |>
add_marker(marker)
21 changes: 21 additions & 0 deletions man/Marker.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions man/add_marker.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions man/layer.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/maplibre.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 474ace2

Please sign in to comment.