Questions tagged [android-mapview]

MapView allows you to create your own Google map-viewing Activity

A View which displays a map (with data obtained from the Google Maps service)

MapView usually refers to the old and obsolete v1 API. For the current v2 API, use .

Useful links

2307 questions
0
votes
1 answer

Draw MapView on Canvas Android

I try to add MapView to Canvas. But when i do mapView.draw(canvas); there is no map that appear. Trying manually using xml and it can appear no problem. But when i set content view with canvas class, mapview not appear even though already passing…
0
votes
1 answer

Google MapView implements OnMapReadyCallback with Kotlin

I use a EmptyActivity and want put a MapView in MainActivity, I think I need implements OnMapReadyCallback, This is my code. package com.example.myapplication import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import…
YIDE
  • 3
  • 2
0
votes
2 answers

FC on Map Activity on end call?

I have a map view in my activity it works fine when there is no call. So obviously there is an onResume() , well at least that is what my log cat is saying. I want to know what I am missing for my map view to resume properly. LogCat 05-06…
Christian
  • 958
  • 5
  • 23
  • 52
0
votes
1 answer

Android LocationManager in AsyncTask

Firstly, I know LocationManager doesn't have to be called in an AsyncTask as it's already non UI blocking :) I have an activity which 1. Gets the users current location 2. Calls a webservice to retrieve a list of specific POIs around that…
MartinS
  • 6,134
  • 10
  • 34
  • 40
0
votes
1 answer

Location icon not disappearing

I have a map view in my application which - among other things - displays the location of the user. Therefore my application will show the location arrow on the status bar but when I go to another view of the application the arrow does not…
simonbs
  • 7,932
  • 13
  • 69
  • 115
0
votes
1 answer

Android MapView load location from searchView

Is it possible in mapView to load a marker when the user clicks a button or submits a search in searchView. I am having trouble getting marker locations to show when the user submits data. When the user submits the info it pulls the lat and long but…
0
votes
1 answer

Darken Map View when Annotation Clicked/Viewed

Is it possible to make the Mapview darken/decrease the alpha over a black background (similar to viewing images in a JS/CSS lightbox) when a annotation is clicked (which in turn shows a custom View over the lower portion of the map (in essence a…
dotbill
  • 1,001
  • 7
  • 13
0
votes
2 answers

Removing overlays from mapView

I create overlays in mapView , the problem is when I get back to the mapsview activity again, i see the overlays that i previously made. i have tried to remove overlays in ondestroy method which doesnt help.Tried all, trust me.heres the code...Also…
ozmank
  • 763
  • 1
  • 8
  • 23
0
votes
0 answers

How to apply com.google.android.gms.maps.MapView inside scrollview?

I am trying to implement the com.google.android.gms.maps.MapView to Scrollview but whenever I want to navigate on the map the scrollview always get in the way when i scrolldown or scrollup. I tried to search for some answers but most of them are…
Mr. Baks
  • 297
  • 2
  • 6
  • 20
0
votes
1 answer

Android mapView setShowsUserLocation?

is there an option on Android to set an mapView option like in iOS? In iOS you can do [mapView setShowsUserLocation:YES] to show the Userslocation? Or am i wrong? Regards, float
float
  • 1,265
  • 5
  • 22
  • 38
0
votes
1 answer

Android Draw Polygon on map view programmatically starting from a coordinate array

How can I draw a polygon on map view programmatically starting from a String array of coordinate? I mean something like that: separated[0] = "49.89760342670385 10.878719240427015" separated[1] = "49.89755850492233 10.878766849637032" separated[2] =…
TheOldBlackbeard
  • 395
  • 4
  • 22
0
votes
1 answer

How to disappear images on a map view?

I have created a map view application and overlay some images on the map view. While clicking a button, all the images should disappear. How to do this?..Please help
indira
  • 6,569
  • 18
  • 65
  • 80
0
votes
0 answers

In this.gMap.getUiSettings(),this.gMap.getUiSettings is undefined using Nativescript

I'm using google maps nativescript. I have this code: HTML: TS: public onMapReady1(event) { …
0
votes
1 answer

Make changes in a webp image used as bitmap (google map)

I have the following code: private BitmapDescriptor getMapIcon() { int resourceId = R.drawable.myimage; return BitmapDescriptorFactory.fromResource(resourceId); } ... MarkerOptions markerOptions = new MarkerOptions(); …
0
votes
1 answer

How to overlay a bitmap on map view in android?

I want to overlay a bitmap image on map view. I have downloaded a image from url to a Bitmap which contains the image. How to overlay this bitmap on map view in android?
indira
  • 6,569
  • 18
  • 65
  • 80
1 2 3
99
100