Skip to content

mubashirqasim/leafletGeocoderRshiny

Repository files navigation

Leaflet Geo-coder for Rshiny

Build Status

This html widget is built embed the following on leaflet maps in your shinyapp:

Installation

Github version can be installed by running the following:

if (!require('devtools')) install.packages('devtools')
devtools::install_github('mubashirqasim/leafletGeocoderRshiny')

Example

library(leaflet)
library(leafletGeocoderRshiny)

leaflet(data = quakes) %>%
  addTiles() %>%
  leafletMapSearch()

capture

library(leaflet)
library(leafletGeocoderRshiny)

leaflet(data = quakes) %>%
  addTiles() %>%
  addCircleMarkers(~long, ~lat, popup = ~as.character(mag),
             group = 'marker', label = ~as.character(mag)) %>%
  addDataSearchMarker('marker', position = 'topleft', propertyName = 'popup')

capture

License

This package is licensed to you under the terms of the GNU General Public License version 3 or later.