Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mubashirqasim/leafletGeocoderRshiny
https://github.com/mubashirqasim/leafletGeocoderRshiny
htmlwidget leaflet leaflet-map leaflet-plugins leaflet-search rshiny
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mubashirqasim/leafletGeocoderRshiny
- Owner: mubashirqasim
- Created: 2017-04-12T21:12:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T04:59:00.000Z (over 7 years ago)
- Last Synced: 2024-03-17T12:10:26.768Z (9 months ago)
- Topics: htmlwidget, leaflet, leaflet-map, leaflet-plugins, leaflet-search, rshiny
- Language: CSS
- Size: 329 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-shiny-extensions - leafletGeocoderRshiny - Leaflet + Pelias geocoding for Shiny. (Visualization / Maps and Spatial Data)
README
# Leaflet Geo-coder for Rshiny
[![Build Status](https://travis-ci.org/mubashirqasim/leafletGeocoderRshiny.svg)](https://travis-ci.org/mubashirqasim/leafletGeocoderRshiny)
This html widget is built embed the following on [leaflet maps](http://leafletjs.com/) in your shinyapp:
* State of the art [leaflet-geocoder](https://github.com/mapzen/leaflet-geocoder) by [Mapzen](https://mapzen.com/) using [Pelias](http://pelias.io/) package, see example [here](https://mapzen.github.io/leaflet-geocoder/#6/-40.330/175.979)
* [Leaflet Control Search](https://github.com/stefanocudini/leaflet-search)## Installation
Github version can be installed by running the following:```r
if (!require('devtools')) install.packages('devtools')
devtools::install_github('mubashirqasim/leafletGeocoderRshiny')
```## Example
### [Leaflet + Mapzen Search geocoding plugin](https://github.com/mapzen/leaflet-geocoder)```r
library(leaflet)
library(leafletGeocoderRshiny)leaflet(data = quakes) %>%
addTiles() %>%
leafletMapSearch()
```![capture](https://cloud.githubusercontent.com/assets/8086373/24949630/679cf568-1fc2-11e7-92fb-e66d3a2d7732.png)
## [Leaflet + Leaflet Control Search](https://github.com/stefanocudini/leaflet-search)
```r
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](https://cloud.githubusercontent.com/assets/8086373/24983519/9083dd74-203b-11e7-8c0a-42fea21f3e7e.png)
## License
This package is licensed to you under the terms of the [GNU General Public
License](http://www.gnu.org/licenses/gpl.html) version 3 or later.