Questions tagged [mapview]
The mapview tag has no usage guidance.
mapview
86
questions
4
votes
1
answer
3k
views
Hiding/Removing business names & markers in react-native-maps' mapview
I'm implementing my custom marker pin in MapView component. Are there a way to hide or remove third party markers, like hotels, restaurants, sales stores, etc...?
I have searched in component docs but ...
3
votes
4
answers
1k
views
How to compute all pairwise interaction between polygons and the the percentage coverage in R with sf?
I have polygons where I want to calculate the percentage overlap between them. The idea is that when a polygon intersects another one, the percentage can be calculated on the perspective of one ...
3
votes
2
answers
2k
views
Add colorFactor palette to mapview object
The aim is to provide fixed colors to factor values. I struggle applying a colorFactor scale to a mapview object. However, the palette does not seem to match zcol.
I tried the following, similar to a ...
3
votes
0
answers
4k
views
React Native MapView without API key
I want to use MapView from react-native-maps library in my react native expo project without going into Google API key pricing.
Is there any way to do that?
Currently, I am using UrlTile to display ...
2
votes
1
answer
153
views
Combine Multilinestring into one line string to generate regular spaced points using sf
I'm trying to generate random points on a linestring using SF. However, the data is multilinestring and st_line_sample requires linestring. So I'd like to make the multilinestring into only one ...
2
votes
1
answer
912
views
SwiftUI Map: How to convert screen coordinates to map coordinates?
Setup:
I am converting an app to SwiftUI. This app had an MKMapView with annotations that could be dragged on the map.
I was able to write a first version of the SwiftUI app with a draggable image.
It ...
2
votes
1
answer
443
views
Create Polygons by Category in sf file R
I have a large set of coordinates from the critical and endangered habit federal registry. I'm trying to digitize these maps for analysis. Here's a sample of the data as an example.
library(tidyverse)
...
2
votes
0
answers
161
views
I get error message when I try to use animateToRegion
I tried to use code from this website: https://serveanswer.com/questions/react-native-maps-animatetoregion-does-not-work-with-region-or-initialregion
Unfortunately I have an error message. Here is the ...
2
votes
1
answer
469
views
Installing the R package mapview on Ubuntu 20.04
I am trying to install the R package mapview on Ubuntu but I get the error:
ERROR: lazy loading failed for package ‘mapview’
I have tried installing both the CRAN version of mapview and the ...
1
vote
2
answers
227
views
How to make small polygons from shapefile and extract coordinates
I have a small shapefile here: https://login.filesanywhere.com/fs/v.aspx?v=8c6d62865c626fb4a2ab called bay.RDS
library(tmap)
library(leaflet)
library(mapview)
bay <- readRDS('bay.RDS')
mapview(...
1
vote
3
answers
1k
views
MapView build: Expose secret google maps api key in app.json, is it safe?
I am building a new react native app with expo which uses google maps (MapView library),
But, deploying a map with Google Maps requires to explecitly add maps api key in app.json as below :
“android”:...
1
vote
1
answer
113
views
manually fixing colors in the map
The data is:
d.fit.spatial.1914 <- structure(list(country = c("Albania", "Austria", "Belgium", "Netherlands",
"Poland", &...
1
vote
1
answer
231
views
Map annotations only appear after map is moved
I have a map which loads annotations from the Google API, when the map initially loads all the annotations they are 'placed' as seen through the print in the console, however they won't show up on the ...
1
vote
1
answer
426
views
Swift: Problem with @Binding a region to a MKMapView and calling setRegion(). setRegion() not doing anything
I am new to Swift so this may be a problem due to my inexperience. I am trying to bind a MKCoordinateRegion variable in the MapView struct so that the map is automatically centered on the user, but ...
1
vote
1
answer
180
views
mapview and plot show different output for the same rasterLayer, why?
Below is the rasterLayer RASTER_slope in a plot (4 NAs are shown in white):
Here is the metadata of RASTER_slope
class : RasterLayer
dimensions : 4, 4, 16 (nrow, ncol, ncell)
resolution : 500, ...