- Notifications
You must be signed in to change notification settings - Fork0
R/Shiny fusion with AMap (Gaode) for advanced mapping
License
helgasoft/amapro
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A thin R wrapper around Javascript libraryAMap and its 3D pluginLoca.
API has eight(8) commands to enclose all AMap and Loca v.2.0 native commands and parameters.
Features easy transition 2D to/from 3D, variety of markers and layers, geoJson import, map manual drawing, dynamic 3D effects like flyover and trace animation, and more.
Enjoy rich interactive maps in R and Shiny with minimal overhead!
Use latest development version for optimal experience:
if (!requireNamespace('remotes')) install.packages('remotes')remotes::install_github('helgasoft/amapro')
library(amapro); am.init()ctr<- c(22.430151,37.073011)turl<- paste0('http://server.arcgisonline.com/ArcGIS/rest/services/','World_Imagery/MapServer/tile/[z]/[y]/[x]')helmet<-'https://upload.wikimedia.org/wikipedia/commons/9/9d/Ancient_Greek_helmet.png'library(amapro)am.init(viewMode='3D',center=ctr,zoom=10,pitch=60)|>am.control(ctype='ControlBar',position='RT')|>am.item('TileLayer',tileUrl=turl)|>am.item('Marker',position=ctr,icon=helmet)|>am.cmd('set','InfoWindow',name='iwin',content='This is Sparta')|>am.cmd('open','iwin','m$jmap',ctr)# m$jmap is the map name in JavaScript# ... then open in browser for best performance
Run with commanddemo(am.shiny, 'amapro'). Demo will open in defaultbrowser.
About
R/Shiny fusion with AMap (Gaode) for advanced mapping
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Uh oh!
There was an error while loading.Please reload this page.

