Timeline for How to create independent/fixed inset maps with leaflet?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 16, 2019 at 16:27 | vote | accept | Denys D. | ||
Jan 13, 2019 at 20:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 8, 2018 at 18:59 | comment | added | Denys D. | @Spacedman Thanks, sounds good! I will probably go about custom JS route you suggested and will post my solution if/when I get it to work. | |
Nov 8, 2018 at 18:33 | comment | added | Spacedman | Best you can do is use a shapefile/spatial object where AK and HA are not in the right place geographically. But underlying tiles will be wrong. See github.com/rstudio/leaflet/issues/172 - or resort to hand-crafted Javascript and multiple map items on an HTML page. | |
Nov 8, 2018 at 17:53 | comment | added | Denys D. |
@Spacedman This works quite well, but with two issues, one being that the inset map doesn't reflect the data from the main map (though this would be a different question), but more importantly, is that indeed I would want two/multiple fixed inset maps at the same time. Perhaps addMiniMap isn't a way to go here. Thank you for help all the same!
|
|
Nov 8, 2018 at 14:53 | comment | added | Spacedman | The question asks for two inset maps (Alaska and Hawaii). Want to close it as "too broad" then? | |
Nov 8, 2018 at 14:31 | comment | added | StefanBrand_EOX | I think that would be a different question. | |
Nov 8, 2018 at 14:26 | comment | added | Spacedman |
leaflet() %>% addTiles() %>% addMiniMap(centerFixed=c(63, -150),zoomLevelFixed=2) gives me an Alaska-focused mini map but I can't see how to add another one based on Hawaii. Multiple addMiniMap functions don't have any effect (even with different position parameters)
|
|
S Nov 8, 2018 at 13:42 | history | suggested | StefanBrand_EOX |
correct tag
|
|
Nov 8, 2018 at 13:22 | answer | added | StefanBrand_EOX | timeline score: 1 | |
Nov 8, 2018 at 13:20 | review | Suggested edits | |||
S Nov 8, 2018 at 13:42 | |||||
Nov 8, 2018 at 12:47 | history | asked | Denys D. | CC BY-SA 4.0 |