Questions tagged [mapview]

76 questions
3
votes
2 answers

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 leaflet map. library(mapview) colors <-…
Beni
  • 191
  • 9
3
votes
4 answers

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 polygon or the other (i.e., the maximum value).…
M. Beausoleil
  • 3,141
  • 6
  • 29
  • 61
2
votes
1 answer

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 uses a View that is displayed as annotation on…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
2
votes
1 answer

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 found nothing.
2
votes
0 answers

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 code and error message that I get. Thanks for…
Michal96
  • 65
  • 6
2
votes
1 answer

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…
2
votes
0 answers

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 Openstreetmap maps but I am not sure if this the…
Bassel Turky
  • 371
  • 7
  • 15
2
votes
1 answer

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 development version, ie,…
land-ahoy
  • 71
  • 1
  • 4
1
vote
1 answer

manually fixing colors in the map

The data is: d.fit.spatial.1914 <- structure(list(country = c("Albania", "Austria", "Belgium", "Netherlands", "Poland", "Portugal", "Denmark", "Germany", "Greece", "Spain", "Bulgaria", "Switzerland",…
Rustam
  • 87
  • 6
1
vote
1 answer

Why tmap invokes R device in t_map_mode("view")

I am trying tmap for the first time and while making some maps on "view" mode the R graphics device pops up everytime I attempt to make an interactive plot. For instance: library(tmap) library(mapview) data(World) # just the…
Salvador
  • 1,229
  • 1
  • 11
  • 19
1
vote
0 answers

Android app crashes while loading an arcGIS map

I'm creating an android app, and I just want to load a map from my arcGIS online. Here's the MainActivity class: public class MainActivity extends AppCompatActivity { private MapView mMapView; private ArcGISMap wenceMap; @Override …
MrDoctor
  • 11
  • 3
1
vote
1 answer

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 map until I move the map once. Does anyone know…
Cal
  • 422
  • 6
  • 20
1
vote
1 answer

What goes in: viewRef: MapViewNativeComponentType when using React Native Maps in .current.fitToSuppliedMarkers

useEffect(() => { if(!origin || !destination) return; mapRef.current.fitToSuppliedMarkers(["origin", "destination"], { edgePadding: { top: 50, right: 50, bottom: 50, left: 50} }) }, [origin, destination]); So I'm following a tutorial and I can't…
1
vote
1 answer

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 setRegion() doesn't seem to be working even though…
Messenger_
  • 13
  • 3
1
vote
1 answer

Block Mapview from Scrollview interaction Android

I have a ScrollView with many views in it (TextView, Buttons, ...) and at the end there is an osmdroid-mapview, which is just a map. When I touch on the mapview, android does not move the map (zooming or changing the location of the map) but it…
1
2 3 4 5 6