From 9cc87a34f5ca2bd78d3bb306291d265b61f954f8 Mon Sep 17 00:00:00 2001 From: trafficonese <35805180+trafficonese@users.noreply.github.com> Date: Sun, 1 Sep 2024 12:55:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20traffico?= =?UTF-8?q?nese/leaflet.extras2@9d076e9725be9cbaaa2c744d3dac29e320ea7517?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CODE_OF_CONDUCT.html | 103 ++- LICENSE-text.html | 101 ++- authors.html | 142 ++-- dev/index.html | 1 + dev/news/index.html | 3 +- dev/pkgdown.yml | 2 +- dev/reference/addBuildings.html | 152 ++++ dev/reference/addClusterCharts.html | 12 +- dev/reference/addContextmenu.html | 4 +- dev/reference/addDivicon.html | 4 +- dev/reference/addEasyprint.html | 4 +- dev/reference/addGIBS.html | 4 +- dev/reference/addHexbin.html | 4 +- dev/reference/addHistory.html | 4 +- dev/reference/addMapkeyMarkers.html | 4 +- dev/reference/addSidebyside.html | 4 +- dev/reference/addSpinner.html | 4 +- dev/reference/addWMS.html | 4 +- dev/reference/historyOptions.html | 4 +- dev/reference/index.html | 20 + .../osm-buildings-bindings.js | 76 ++ .../libs/lfx-building-2.1.0/osm-buildings.css | 25 + .../libs/lfx-building-2.1.0/osm-buildings.js | 54 ++ dev/reference/setBuildingData.html | 102 +++ dev/reference/setBuildingStyle.html | 106 +++ dev/reference/updateBuildingTime.html | 102 +++ dev/sitemap.xml | 4 + index.html | 177 ++--- pkgdown.css | 248 ++----- pkgdown.js | 19 +- pkgdown.yml | 7 +- reference/addAntpath.html | 427 ++++++----- reference/addEasyprint.html | 188 +++-- reference/addGIBS.html | 259 ++++--- reference/addHexbin.html | 319 +++++---- reference/addMapkeyMarkers.html | 357 ++++++---- reference/addOpenweatherCurrent.html | 244 ++++--- reference/addOpenweatherTiles.html | 264 ++++--- reference/addPlayback.html | 383 +++++----- reference/addReachability.html | 223 +++--- reference/addSidebar.html | 215 +++--- reference/addSidebyside.html | 266 ++++--- reference/addTangram.html | 254 ++++--- reference/addVelocity.html | 241 ++++--- reference/addWMS.html | 295 ++++---- reference/antpathOptions.html | 271 ++++--- reference/clearAntpath.html | 155 ++-- reference/clearHexbin.html | 166 +++-- reference/closeSidebar.html | 162 +++-- reference/easyprintMap.html | 241 ++++--- reference/easyprintOptions.html | 312 ++++---- reference/gibs_layers.html | 125 +++- reference/hexbinOptions.html | 249 ++++--- reference/hideHexbin.html | 166 +++-- reference/index.html | 673 +++++++++--------- reference/leaflet.extras2.html | 115 ++- reference/makeMapkeyIcon.html | 342 +++++---- reference/mapkeyIconList.html | 298 ++++---- reference/mapkeyIcons.html | 301 ++++---- reference/openSidebar.html | 178 +++-- reference/openweatherCurrentOptions.html | 187 +++-- reference/openweatherOptions.html | 183 +++-- reference/playbackOptions.html | 300 ++++---- reference/reachabilityOptions.html | 198 ++++-- reference/removeAntpath.html | 163 +++-- reference/removeEasyprint.html | 153 ++-- reference/removePlayback.html | 151 ++-- reference/removeReachability.html | 151 ++-- reference/removeSidebar.html | 162 +++-- reference/removeSidebyside.html | 155 ++-- reference/removeVelocity.html | 159 +++-- reference/setDate.html | 169 +++-- reference/setOptionsVelocity.html | 167 +++-- reference/setTransparent.html | 169 +++-- reference/showHexbin.html | 166 +++-- reference/sidebar_pane.html | 218 +++--- reference/sidebar_tabs.html | 202 +++--- reference/sub-.leaflet_mapkey_icon_set.html | 162 +++-- reference/to_ms.html | 151 ++-- reference/updateHexbin.html | 208 ++++-- reference/velocityOptions.html | 211 ++++-- 81 files changed, 8074 insertions(+), 4900 deletions(-) create mode 100644 dev/reference/addBuildings.html create mode 100644 dev/reference/libs/lfx-building-2.1.0/osm-buildings-bindings.js create mode 100644 dev/reference/libs/lfx-building-2.1.0/osm-buildings.css create mode 100644 dev/reference/libs/lfx-building-2.1.0/osm-buildings.js create mode 100644 dev/reference/setBuildingData.html create mode 100644 dev/reference/setBuildingStyle.html create mode 100644 dev/reference/updateBuildingTime.html diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 34319986..f8f3e250 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -1,12 +1,55 @@ + -Contributor Code of Conduct • leaflet.extras2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + +
-
+
-
+
- -
- -
- - - +
+
- + + diff --git a/LICENSE-text.html b/LICENSE-text.html index 0a469a85..a9851728 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -1,12 +1,55 @@ + -License • leaflet.extras2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + +
-
+
-
+
- -
- -
- - - +
+
- + + diff --git a/authors.html b/authors.html index cc269a0f..673bd218 100644 --- a/authors.html +++ b/authors.html @@ -1,12 +1,55 @@ + -Authors and Citation • leaflet.extras2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + -
-
-
+
-
- - - -
  • -

    Gatscha Sebastian. Author, maintainer. -

    -
  • -
  • -

    Ricardo Rodrigo Basa. Contributor. -

    -
  • -
  • -

    Jeffrey O Hanson. Contributor. -

    -
  • -
-
-
-

Citation

- Source: DESCRIPTION -
+ - -

Sebastian G (2023). -leaflet.extras2: Extra Functionality for 'leaflet' Package. -https://trafficonese.github.io/leaflet.extras2/, https://github.com/trafficonese/leaflet.extras2. -

-
@Manual{,
-  title = {leaflet.extras2: Extra Functionality for 'leaflet' Package},
-  author = {Gatscha Sebastian},
-  year = {2023},
-  note = {https://trafficonese.github.io/leaflet.extras2/, https://github.com/trafficonese/leaflet.extras2},
-}
+
    +
  • +

    Gatscha Sebastian. Author, maintainer. +

    +
  • +
- -
- - - +
+
- + + diff --git a/dev/index.html b/dev/index.html index 335ad33c..22b39d6b 100644 --- a/dev/index.html +++ b/dev/index.html @@ -102,6 +102,7 @@

Integrated PluginsMapkey Icons
  • Moving Markers
  • OpenWeatherMap
  • +
  • OSMBuildings
  • Playback
  • Reachability
  • Sidebar-v2
  • diff --git a/dev/news/index.html b/dev/news/index.html index 4d7d56a1..156b846b 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -49,7 +49,8 @@

    Changelog

    -
    • New Function addDivicon adds DivIcon markers to Leaflet maps with support for custom HTML and CSS classes. See the example in ./inst/examples/divicons_html_app.R +
      • Included OSM Buildings plugin
      • +
      • New Function addDivicon adds DivIcon markers to Leaflet maps with support for custom HTML and CSS classes. See the example in ./inst/examples/divicons_html_app.R
      • Added addClusterCharts to enable pie and bar charts in Marker clusters using Leaflet.markercluster, d3 and L.DivIcon, with support for customizable category styling and various aggregation methods like sum, min, max, mean, and median.
      • The opened sidebar tab is returned as Shiny input using the sidebar_tabs ID. #67
      • diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index 92018a69..15ade923 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -2,4 +2,4 @@ pandoc: 3.1.11 pkgdown: 2.1.0 pkgdown_sha: ~ articles: {} -last_built: 2024-09-01T12:52Z +last_built: 2024-09-01T12:55Z diff --git a/dev/reference/addBuildings.html b/dev/reference/addBuildings.html new file mode 100644 index 00000000..89db3f56 --- /dev/null +++ b/dev/reference/addBuildings.html @@ -0,0 +1,152 @@ + +Add OSM-Buildings to a Leaflet Map — addBuildings • leaflet.extras2 + + +
        +
        + + + +
        +
        + + +
        +

        This function adds 2.5D buildings to a Leaflet map using the OSM Buildings plugin.

        +
        + +
        +
        addBuildings(
        +  map,
        +  buildingURL = "https://{s}.data.osmbuildings.org/0.2/59fcc2e8/tile/{z}/{x}/{y}.json",
        +  group = NULL,
        +  eachFn = NULL,
        +  clickFn = NULL,
        +  data = NULL
        +)
        +
        + +
        +

        Arguments

        + + +
        map
        +

        A map widget object created from leaflet.

        + + +
        buildingURL
        +

        The URL template for the building data. Default is the OSM Buildings tile server:
        "https://{s}.data.osmbuildings.org/0.2/59fcc2e8/tile/{z}/{x}/{y}.json".

        + + +
        group
        +

        The name of the group the buildings will be added to.

        + + +
        eachFn
        +

        A JavaScript function (using JS) that will be called for each building feature. Use this to apply custom logic to each feature.

        + + +
        clickFn
        +

        A JavaScript function (using JS) that will be called when a building is clicked. Use this to handle click events on buildings.

        + + +
        data
        +

        A GeoJSON object containing Polygon features representing the buildings. The properties of these polygons can include attributes like height, color, roofColor, and others as specified in the OSM Buildings documentation.

        + +
        +
        +

        Details

        +

        The `data` parameter allows you to provide custom building data as a GeoJSON object. The following properties can be used within the GeoJSON:

        • height

        • +
        • minHeight

        • +
        • color/wallColor

        • +
        • material

        • +
        • roofColor

        • +
        • roofMaterial

        • +
        • shape

        • +
        • roofShape

        • +
        • roofHeight

        • +

        See the OSM Wiki: Simple_3D_Buildings

        +
        +
        +

        See also

        +

        https://github.com/kekscom/osmbuildings/ for more details on the OSM Buildings plugin and available properties.

        +

        Other OSM-Buildings Plugin: +setBuildingData(), +setBuildingStyle(), +updateBuildingTime()

        +
        + +
        +

        Examples

        +
        library(leaflet)
        +library(leaflet.extras2)
        +
        +leaflet()  %>%
        +  addProviderTiles("CartoDB") %>%
        +  addBuildings(group = "Buildings") %>%
        +  addLayersControl(overlayGroups = "Buildings") %>%
        +  setView(lng = 13.4, lat = 52.51, zoom = 15)
        +
        +
        +
        +
        + +
        + + +
        + +
        +

        Site built with pkgdown 2.1.0.

        +
        + +
        + + + + + + + + diff --git a/dev/reference/addClusterCharts.html b/dev/reference/addClusterCharts.html index adfbf9a3..b11059f5 100644 --- a/dev/reference/addClusterCharts.html +++ b/dev/reference/addClusterCharts.html @@ -255,8 +255,8 @@

        Examples

        , popupLabels = c("Brauerei", "Adresse", "PLZ", "Art") , label = "brewery" ) -
        - +
        + ## Bar Chart leaflet() %>% addProviderTiles("CartoDB.Positron") %>% @@ -271,8 +271,8 @@

        Examples

        , popupFields = c("brewery", "address", "zipcode", "category") , popupLabels = c("Brauerei", "Adresse", "PLZ", "Art") , label = "brewery") -
        - +
        + ## Custom Pie Chart with "mean" aggregation on column "value" data <- sf::st_as_sf(breweries91) categories <- c("Schwer", "Mäßig", "Leicht", "kein Schaden") @@ -296,8 +296,8 @@

        Examples

        , popupLabels = c("Brauerei", "Adresse", "PLZ", "Art", "Value") , label = "brewery" ) -
        - +
        + ## For Shiny examples, please run: # runApp(system.file("examples/clusterCharts_app.R", package = "leaflet.extras2")) # runApp(system.file("examples/clustercharts_sum.R", package = "leaflet.extras2")) diff --git a/dev/reference/addContextmenu.html b/dev/reference/addContextmenu.html index b1afa674..0fe893dc 100644 --- a/dev/reference/addContextmenu.html +++ b/dev/reference/addContextmenu.html @@ -144,8 +144,8 @@

        Examples

        index = 1) ) )) -
        - +
        +
    diff --git a/dev/reference/addDivicon.html b/dev/reference/addDivicon.html index 166b71c3..531c5e72 100644 --- a/dev/reference/addDivicon.html +++ b/dev/reference/addDivicon.html @@ -202,8 +202,8 @@

    Examples

    "MinPress:", MinPress) , options = markerOptions(draggable = TRUE) ) -
    -
    +
    +
    +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    +