Skip to main content

Questions tagged [mapview]

The tag has no usage guidance.

0 votes
2 answers
28 views

Display Text over MapView without Redrawing MapView when Overlayed Text Changes

I have a <MapView /> next to some position: absolute Views with Text in them. In the MapView, I have a <Circle /> within it to mark an area within the map. I have information like the user'...
Apoptosome's user avatar
0 votes
0 answers
32 views

MapView In react native keeps coming up with a web bundling error?

new to all this but im having problems with using MapView in my react native app i keep getting a web bundling failed when i add the import map view, any help will be appreciated here is my code and ...
dan lea's user avatar
0 votes
0 answers
15 views

How to edit the clickable popup in R-Map

I made a map using mapview. When you click on a point on the map, you get a popup with the details of that observation. However, not all the 8 columns in the popup are relevant to the map's target ...
Eva's user avatar
  • 1
0 votes
0 answers
23 views

MapView Marker React Native Expo

Error Type '{ coordinate: { latitude: number; longitude: number; }; image: { uri: string; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'. Property ...
Beanz's user avatar
  • 1
0 votes
1 answer
33 views

Red bubbles inside a MapView in kivymd

I'm making an application that uses a map, but when I zoom in or zoom out, orange bubbles appear on the map that I don't know how to disable. Also, when I switch to another window, the dots remain. ...
Batman Dorado's user avatar
0 votes
0 answers
37 views

Fitting a Long Legend Within Mapview

I like what mapview outputs but can't really use it with with the burst option (seems to make legend interactive and zooms to group on click) as there's no way to adjust the scale of the legend. Is ...
eMosso's user avatar
  • 1
0 votes
0 answers
24 views

Can I load basemap without center or set view in map initialization

I have the center coming from a different layer, however, that layer is loading slowly so initially you see a blank map container.so, I want the basemap to be visible. view.map = L.map('map_' + mapId, ...
Asm's user avatar
  • 1
0 votes
1 answer
51 views

How to render a mapview output in PDF with knits?

I'm rendering a PDF with mapview. However, the output seems that it was too fast at getting a screenshot of the map and is not rendering it properly. --- title: "test" output: pdf_document:...
M. Beausoleil's user avatar
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 ...
M. Beausoleil's user avatar
1 vote
1 answer
103 views

How to show only downloaded map tiles and not the default Apple/Google maps with MapView library in Expo/React-Native

I am displaying a map view in my react native app like this, using the MapView library. <View style={styles.container}> <MapView region={region} style={styles.map}> <UrlTile ...
anonymous2343's user avatar
0 votes
0 answers
25 views

Change MapView padding (to avoid being hidden under a bottom sheet)

I'm showing a bottom sheet on top of MapView. I want to push the map center, and apply bottom padding to MapView according to bottom sheet height. Any thoughts on how to do that?
Soheib Bettahar's user avatar
0 votes
0 answers
108 views

Cannot navigate to view from mapview calloutAccessoryControlTapped delegate method

When user taps on mapview annotation rightCalloutAccessoryView disclosure button, I want to navigate to another view struct ProfileMapView: View { var body: some View { NavigationView { ...
vrao's user avatar
  • 571
0 votes
0 answers
41 views

Argument passed to call that takes no arguments SwiftUI for MapView

I am passing an argument locationPins into MyMapView as a Binding and then again pass locationPins to MapView as another Binding. But when I pass it to MapView as an argument I get error: "...
vrao's user avatar
  • 571
0 votes
0 answers
25 views

I'm stuck with kivy's mapmarkerpopup function, can anyone help me?

At the moment I'm having problems displaying a marker to insert on the map although the code from IDE does not give errors of any kind, it displays the map but not the marker. This is the python code: ...
Mario Rossi's user avatar
0 votes
0 answers
64 views

Error while accessing core data inside Mapview SwiftUI

I have MapView working for a single Marker. I want to access core data entity and based on the number of items it consists of, I want to create corresponding number of Markers. So inside MapView I ...
vrao's user avatar
  • 571
1 vote
1 answer
73 views

How to visualize single points in shiny app mapview leaflet

I have a large dataset but I am providing 3 records to make this example reproducible with the minimum amount of data. I am able to show on leaflet all the 3 sites at once but I would like to show one ...
Salvador's user avatar
  • 1,467
0 votes
1 answer
198 views

How to use addStaticLabels with mapview

I am trying to use addStaticLabels with mapview but the outline of the map disapears. Could someone help me figure out what's going on? If I run: library(mapview) library(leafem) mapview(franconia) ...
Salvador's user avatar
  • 1,467
0 votes
0 answers
188 views

How to add labels to mapview?

This may be an easy question but for some reason can't figure out how to add labels to each region or polygon in my real map. How can I add the NAME_ASCI names to this map? library(mapview) library(...
Salvador's user avatar
  • 1,467
0 votes
0 answers
55 views

How to create an interactive map of a stars object that has a time dimension?

Problem I have regular raster data with a time dimension. It comes as a stars object with the dimensions x, y, date. I want to visualize the stars raster with a timeslider (like this one or similar) - ...
chamaoskurumi's user avatar
0 votes
0 answers
63 views

Hot to expand an existing shapefile

I got a small shapefile here: https://login.filesanywhere.com/fs/v.aspx?v=8c6d62875b6371b5a3ac . I need to make it a little bigger by adding a border above along the coast and another border in the ...
Salvador's user avatar
  • 1,467
0 votes
1 answer
80 views

How to set an anchor and create polygons from shapefile

I am following up on the example here: How to make small polygons from shapefile and extract coordinates I am trying to adapt that example to a different shapefile but I am getting errors. The new ...
Salvador's user avatar
  • 1,467
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(...
Salvador's user avatar
  • 1,467
-1 votes
1 answer
111 views

How to add circle to the mapview in python kivy

i am trying to add circle to mapview. To a certain position on the map. I'm trying to make the radius in map canvas units. and I want it to be attached to that place even when I move or zoom with the ...
w247397y's user avatar
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”:...
da45's user avatar
  • 361
0 votes
0 answers
221 views

R terra cannot create SpatVector from sf MULTILINESTRING if line contains only single point

I have an MULTILINESTRING sf that appears to be ok (see dput below), but when I try and convert it to a SpatVector using pv <- terra::vect(test2) I get the error: Error: [as,sf] coercion failed. ...
DarwinsBeard's user avatar
0 votes
0 answers
170 views

My app is working on Expo Go, but apk crashes when I open page with map component

I finished my app and it is working in Expo Go, but when I export apk to test it, it crashes when I open page with map component. I did all instructions from: https://docs.expo.dev/versions/latest/sdk/...
zorz's user avatar
  • 11
0 votes
0 answers
14 views

Click on MapMarker and get widget back

def addMarker(self,lat:float,lon:float,source:str = "default"): if source == "default": marker = MapMarker(lat=lat, lon=lon) else: marker = ...
The GoodGameCrafter's user avatar
0 votes
0 answers
283 views

Setting Custom Map in Kivy MapView

I am trying to write a sort of map app. The app should show the map of a building and show places of interest with a marker. If you were to then click on the marker you would see some information ...
Timon's user avatar
  • 21
0 votes
0 answers
118 views

Map canada 6 digit zip codes on Looker

Trying to visualize 6 digit zip codes of Canada on a map chart. But Looker is only supporting 3 digit zip codes to be mapped on the map. How to map a zip code like P0W 1L0 on Looker maps? Looker is ...
Teja Goud Kandula's user avatar
0 votes
0 answers
43 views

Using mapview and colouring all the labels a different colour depending on the genus they are in

I am making a map in R using mapview. I want to be able to change the colours of the points so that each Genus has its own colour as opposed to them all being the same. How can I do this? My code is ...
Thomas Munro's user avatar
0 votes
0 answers
206 views

MapViewDirections rerendering issue

ok so i have a page in react native that has a mapview and i am displaying the current location of the user and the destination of the user, at first the user's position on the map didn't move if the ...
Curtis Crentsil's user avatar
0 votes
1 answer
48 views

Stacking Different View in React-Native Failed

I am attempting to implement a page in react-native with a Map component on the botton, and I am also trying to put a overlapping scroll view on top of the Map view without influencing the ...
totalnoob's user avatar
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", &...
Rustam's user avatar
  • 177
0 votes
1 answer
82 views

How can I replace the standard marker with canvas circles on MapView in Kivy?

I want to replace the standard marker of the MapMarkerPopup with a transparent pixel image. Instead I want to draw circles which are shown on the coordinates loaded from a CSV file (in this example ...
jan h's user avatar
  • 5
1 vote
1 answer
56 views

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) ...
Salvador's user avatar
  • 1,467
0 votes
1 answer
204 views

Placing a mapmarker by klick results in setting the marker on acorner of the map-window

I want to set markers on the map by clicking on it. When I click a marker is set. However, the marker is placed on the left lower corner of the map. What am I doing wrong? from kivymd.app import MDApp ...
jan h's user avatar
  • 5
0 votes
2 answers
157 views

subset raster to separate two classes

I have a raster that is too large to post here but can be downloaded from here: https://login.filesanywhere.com/fs/v.aspx?v=8c6c688b586472bcab6a . When I plot it I see a mix of water and land. I would ...
Salvador's user avatar
  • 1,467
0 votes
1 answer
368 views

Add the names of the polygons all the time in Mapview R?

I am using mapview in R to plot maps. I have more tha 100 polygons and I want to show them on the map with the names on it every time. But I couldn’t find a solution to this issue. Any idea? mp<-...
searchandprint's user avatar
0 votes
1 answer
101 views

ERROR Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components)

I'm trying to test the Geojson library but I'm stuck on this error. I am sent below my app.js and package.json codes that was copied from this repository. App.js import React from 'react'; import ...
Danilo Miguel's user avatar
1 vote
0 answers
153 views

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; ...
MrDoctor's user avatar
0 votes
1 answer
391 views

Map view function in R to add two shapefiles

What i am doing: I have two set of data sets one is Shapefile at county level for china and other is csv file which has some value against most of the county. I performed join between these two to ...
Raj's user avatar
  • 65
0 votes
1 answer
247 views

How can I plot a map using ggplot2 that includes the latitude and longitude of the data?

I have data that includes the longitude and latitude of certain locations in Arizona however its over 9000 observations and ggplot2 keeps giving me "Error in st_as_sf.data.frame(data, coords = c(...
Irving C.'s user avatar
0 votes
1 answer
104 views

MapView zoom causes the map to be obscured

I have a problem with the python mapview library: kivy_garden.mapview: if I insert the zoom in the variable map = MapView(zoom=7) the map is completely obscured by a blue color as below you can see ...
ocidref11's user avatar
0 votes
1 answer
295 views

How to change latitude/longitude delta mapview expo react native

WHen i open my react native expo app my mapview is on my location: initialRegion={{ latitude: Number(userProfil.latitude), longitude: Number(userProfil.longitude), ...
Arnaud P's user avatar
  • 117
0 votes
1 answer
258 views

MapView does not show user current location

I was trying to display my current location into a Swiftui MapView. To do so, I created the following class: import SwiftUI import CoreLocation import Combine class LocationManager: NSObject, ...
Daniel C's user avatar
  • 113
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 ...
Reinhard Männer's user avatar
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 ...
MirrorJacket123's user avatar
0 votes
0 answers
43 views

how can ı do Value of type double if null

@IBAction func addLocation(_ sender: UIButton) { //eklenen konumu ve verilerini kaydetme if nameText.text == ""{ makeAlert(tıtleInput: "Error", ...
Bayram Yalav's user avatar
1 vote
1 answer
187 views

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}...
Angel Osuna's user avatar
0 votes
0 answers
184 views

How to create an interactive map of stars/raster object with arbitrary crs?

Problem I would like to create interactive maps of a regular grid that comes in a CRS which is not WGS84. In my case the CRS is EPSG:25833 which has unit metres. Given the comment here, it does not ...
chamaoskurumi's user avatar

15 30 50 per page