mubashirqasim / leafletGeocoderRshiny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:CSS 73.9%Language:R 17.6%Language:JavaScript 8.5%