Questions tagged [mapdeck]
For questions relating to the R package mapdeck
33
questions
0
votes
0
answers
61
views
Mapdeck Geojson Data Cannot be Styled
I want to create a r shiny dashboard using mapdeck package displaying the many layers of geojson in one map. But i have a problem, whenever I add styling into my geojson the R always crashes and ...
0
votes
0
answers
31
views
Busy spinner while R Mapdeck add_scatterplot is rendering
I have a R Shiny app which includes a map. The basemap is rendered using the R Googleway package, whilst the data layers are added using mapdeck. The rendering of a large number of x/y points using ...
0
votes
0
answers
80
views
Changing stroke or fill color causes mapdeck to crash in R
I'm simply trying to change stroke and fill colors of my polygons, lines or points in R using mapdeck. When I try to adjust these parameters it causes R to crash, throwing the following error and ...
0
votes
0
answers
57
views
How to add over effects on mapdeck similar to leaflet's highlightOptions
I would like to customize some reactions of maps created with mapdeck in R. I saw that it is not possible to add popups, but is it possible to customize some reactions like: change of style when the ...
0
votes
0
answers
34
views
Animate camera location/pitch in mapdeck
This seems like a simple thing, but I'm stuck. I've been trying to animate the camera angle on a map and export the animation into some sort gif, mp4, etc. On the github website for mapdeck (https://...
0
votes
1
answer
450
views
get zoom level and center point from browser console for mapbox
I'm using Rmarkdown to make a report with mapdeck which uses javascript libraries (deckgl,mapboxgl, etc) to create maps.
Once I generate the map object I can scroll and zoom around and inspect the ...
2
votes
1
answer
141
views
mapdeck R when using fill_colour the session crashes in Rstudio
As the title says when I use the fill_colour parameter my session crashes.
For example if I take from the Colours section of the mapdeck site and run
library(mapdeck)
library(sf)
sf <- ...
0
votes
1
answer
111
views
Editing MapDeck Legend to Show Miles Instead of Meters
I am using MapDeck to use the mb_isochrone function to draw distances from a specific location in Arlington Heights, Illinois.
This is my code so far:
arlington.race <- c("-88.010102466048&...
1
vote
0
answers
267
views
Mapdeck map will not load when called from a Shiny server over HTTP
I have created a Shiny app incorporating Mapdeck to visualize some pandemic-related data. When the app is run on my local machine using RStudio, it works just fine - the map, all layers, and all ...
0
votes
0
answers
86
views
Accessing HTML Format of Mapdeck Output
I am trying to share the output map from the mapdeck package, but it seems like users without the library installed cannot access the output html file. I am wondering if there's a way to share the map ...
0
votes
0
answers
244
views
How to create layer grouping with Mapdeck and Shiny
Here in Leaflet there are function to do layer grouping layer like this
https://rstudio.github.io/leaflet/showhide.html
It helps user to navigate between layer maps want to use such as grid, hex, ...
1
vote
1
answer
157
views
Clearing data while maintaining the same view in mapdeck/mapbox in R
I'm using mapdeck in conjunction with shiny to create an interactive map with various interactive filters for the data.
One input that I want to include is an input that toggles on/off a certain layer ...
1
vote
0
answers
354
views
Adding popups in mapdeck/mapbox in R
Is there a way to add popups when the user clicks a feature using the mapdeck in R?
I am plotting Origin-Destination arcs using add_arc
m <- mapdeck(token = key, style = 'mapbox://styles/mapbox/...
1
vote
1
answer
175
views
Showing Elevation Mapdeck
I require some help in getting my elevation to show in mapdeck. For some reason I cant seem to get the code to work. I can show the points on the map as 2D points using "add_scatterplot" but ...
1
vote
0
answers
146
views
Custom Marker with Mapdeck
I am trying to create custom Markers (e.g. a picture or symbol) for a scatter plot in mapdeck.
Example:
test <- st_as_sf(as.data.frame(list("lon" = 40, "lat" = 60)), coords = ...
0
votes
1
answer
124
views
anyone got mapdeck working with OSGB vector tiles?
Trying to stretch my understanding of how mapdeck can plot maps and the new (new to me) Ordnance Survey Vector Tile API that can display 3D buildings
See
https://labs.os.uk/public/os-data-hub-examples/...
2
votes
1
answer
378
views
What exactly does Mapdeck in R return during a click event with a add_scatterplot?
I've been trying to develop a few web apps using Mapdeck in R that revolve around building site maps. Right now I'm trying to develop an app that will return a value on click.
My question, with the ...
1
vote
1
answer
232
views
How to use multiple data frame inputs for Mapdeck add_scatterplot within R Shiny?
I'm finding Mapdeck to be a really cool alternative mapping method when working with large datasets in r shiny. However I'm finding it difficult to pass in multiple datasets in order to expand the ...
1
vote
1
answer
78
views
elevation argument not working when fill_color is supplied in add_column in mapdeck
Using mapdeck to plot elevated columns. Elevation happens when fill_colour is ommitted. However when it is supplied, elevation is ignored. In document or code, there is no such indication that both ...
0
votes
1
answer
133
views
How to disable zoom in mapdeck?
I'm using mapdeck to handle county level data with thousands of points or more, as an alternative to leaflet, hoping to get a better performance. With leaflet I used to set maxZoom and minZoom to the ...
2
votes
1
answer
139
views
How can I create Italy map with mapdeck?
I've found this code about a map with road traffic casualties across the UK done with mapdeck.
I would like to create something similar for Italy, but I don't understand how to modify the code to ...
2
votes
1
answer
154
views
Is is possible to color path by elevation?
I'm using mapdeck::add_path() to show aircraft flight paths. I would like to color the paths by elevation; is this possible? Here is a short example:
library(mapdeck)
library(sf)
# From https://...
1
vote
1
answer
353
views
Keep map zoom (inside same city) while changing attributes in shiny|mapdeck
I'm trying to create a shinyapp using mapdeck that maps a variable based on some attributes. Basically, I select a city and then select an activity and a time threshold to produce the desirable map. ...
0
votes
1
answer
227
views
Error creating data layer using the add_trips function of mapdeck
Trying to use the new add_trips layer for mapdeck . Example code and errors below. Grateful for any assistance. Thanks.
The data I'm using:
> class(msi)
[1] "sf" "tbl_df" "tbl" ...
2
votes
1
answer
537
views
How can I make the color scale in mapdeck static
I am developing a shiny app which steps through time by each hour and shows the precipitation on a mapdeck map. I read in the weather data for the entire day and using reactivity filtering the data ...
1
vote
1
answer
163
views
How to run multiple `mapdeck_view` calls sequentially?
I'm making a mapdeck map in an R shiny app that features a button that takes the user to a list of locations. The user clicks on the actionButton (Demo) and the observeEvent function iterates over ...
1
vote
1
answer
405
views
How to use set_token in mapdeck?
I'm trying to reproduce this example: https://github.com/SymbolixAU/mapdeck, using mapdeck r package.
I registered myself on mapbox site and create my token.
Whenever I run my script there is no ...
3
votes
1
answer
498
views
add_polygon in mapdeck zooms out the map
When I add a simple map to my shiny application, without adding polygons, the zoom argument works correctly, and the map initializes as it should.
On the other hand, when I add polygons with ...
2
votes
1
answer
162
views
draw a bar based on a value of column in a map
I am using map deck to draw nearly 100K points, is it possible instead of a dot, show a bar based on a value of a column installed
library(mapdeck)
library(htmlwidgets)
dataset =data.frame(...
1
vote
0
answers
444
views
How to add arrow heads in path in mapdeck
I am trying to plot a path from a dataframe of lat lon coordinates. The data can be found here. This is the code I am using for plotting the path:
library(sf)
library(mapdeck)
library(tidyverse)
df1 ...
1
vote
1
answer
633
views
PNG of Static Map using R and Mapdeck
I would like to create the static map using R and Mapdeck. I am doing it for the first time, and I just want just any png map output at this stage. (Eventually I want to create USA map with 50 states ...
0
votes
0
answers
215
views
R Rstudio problems installing packages mapdeck and googlePolylines
When I try to install the package mapdeck in Rstudio, it appears a message in the console saying that I need to install the package googlePolylines, but I can't install this one. The error that ...
2
votes
1
answer
718
views
Mapdeck Package in R - add_grid Does Not Appear to Render Anything
Problem:
The add_grid function in the R mapdeck package is very exciting. However, following the CRAN documentation, I cannot seem to get any data to actually plot on the returned map.
In other ...