Include a tiny map #13

Open
opened 2018-11-13 13:53:12 -06:00 by mattbk · 4 comments
mattbk commented 2018-11-13 13:53:12 -06:00 (Migrated from github.com)

This type of thing is an option, but it ought to be a bit easier than that.

[This type of thing](https://github.com/fitnr/osm-tiny-maps) is an option, but it ought to be a bit easier than that.
mattbk commented 2018-12-12 17:21:55 -06:00 (Migrated from github.com)

I think Leaflet could be used.

https://rstudio.github.io/leaflet/basemaps.html

image

I think Leaflet could be used. https://rstudio.github.io/leaflet/basemaps.html ![image](https://user-images.githubusercontent.com/3729038/49905212-894aca00-fe32-11e8-8e0b-4fd6b850893a.png)
mattbk commented 2019-02-25 17:34:18 -06:00 (Migrated from github.com)

Geocode: https://www.r-bloggers.com/introducing-the-nominatim-geocoding-package/ Never mind, lat/long come back with the request.

~~Geocode: https://www.r-bloggers.com/introducing-the-nominatim-geocoding-package/~~ Never mind, lat/long come back with the request.
mattbk commented 2019-02-25 17:40:38 -06:00 (Migrated from github.com)
library(leaflet)
library(mapview)
#16 might be good for GFK
m <- leaflet(width = 400, height = 400) %>% setView(lng = -97.03756, lat = 47.91359, zoom = 13)
m <- m %>% addTiles() %>% addMarkers(lng = -97.03756, lat = 47.91359)
mapshot(m, file="map.png", vwidth = 200, vheight = 200)

Need to get the scaling right, though. Smaller image, bigger zoom for thumbnail.

``` library(leaflet) library(mapview) #16 might be good for GFK m <- leaflet(width = 400, height = 400) %>% setView(lng = -97.03756, lat = 47.91359, zoom = 13) m <- m %>% addTiles() %>% addMarkers(lng = -97.03756, lat = 47.91359) mapshot(m, file="map.png", vwidth = 200, vheight = 200) ``` Need to get the scaling right, though. Smaller image, bigger zoom for thumbnail.
mattbk commented 2019-02-26 16:43:07 -06:00 (Migrated from github.com)

out

![out](https://user-images.githubusercontent.com/3729038/53451923-96b13280-39e5-11e9-8e65-df5206884817.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: matt/hack-grand-forks#13
No description provided.