Questions tagged [mylocationoverlay]

An Android Overlay for drawing the user's current location (and accuracy) on the map, and/or a compass-rose inset.

76 questions
2
votes
1 answer

Android : Showing MyLocationOverlay.enableMyLocation as compass

A little Question about the MyLocationOverlay.enableMyLocation method in a MapView. In the Original Goggle Maps App there is the Location shown as a Compass, but, if I enable the MyLocation-feature in a MapView it only shows this blue knob. How can…
Chris
  • 360
  • 2
  • 4
  • 21
2
votes
1 answer

How do MyLocationOverlay.getMyLocation() and getLastFix() differ?

Looking at MyLocationOverlay - does anyone know what the difference is between: public GeoPoint getMyLocation(); public android.location.Location getLastFix(); MyLocationOverlay (besides the return type)? Does the getMyLocation() method return a…
user291701
  • 38,411
  • 72
  • 187
  • 285
2
votes
1 answer

How to drop a pin on Google map and how to get current address in dialog box on Google map?

I am working on one application which is related to Google map. I am a beginner in Google map. I want to do an application which shows a Pin at my Current location. When I click on that pin it shows the dialog which contain my current address. "Pin…
2
votes
1 answer

Animated Drawable MyLocationOverlay()

Is it possible to over-ride MyLocationOverlay()'s onDraw method and replace the standard flashing blue icon with something else. What are the ways I could implement this?
manno23
  • 184
  • 1
  • 9
2
votes
2 answers

Google Map Accuracy Radius

I use Google Maps for my project. It shows approximate location on a map, surrounded by a blue circle showing the inaccuracy of your position. I want to understand how correctly determined my location. And the question is how to get the radius of…
Daryn
  • 770
  • 9
  • 19
2
votes
0 answers

overlaying an image over native camera preview in android

I have tried to implement the image overlay on the live video using native camera. The code is as follows: if (bmp != null) { Canvas canvas = mHolder.lockCanvas(); if (canvas != null) { canvas.drawBitmap(bmp,…
1
vote
1 answer

How to draw rotating arrow as marker in MyLocationOverlay?

How do I draw a rotating arrow depending on the true north and location of the user? I will be using it as a marker on a map. It will work just like those in navigation applications. I'm currently thinking of overriding the onSensorChanged and…
Arci
  • 6,647
  • 20
  • 70
  • 98
1
vote
1 answer

android, Is this a right way of using MyLocationOverlay for getting user location to send it to server...?

I am new to android. I have learned about MyLocationOverlay. It can get user location and draw a blue point on that location. I want to get user location and send it to server. Is it possible by using MyLocationOverlay to get user location. If it…
Khawar Raza
  • 15,870
  • 24
  • 70
  • 127
1
vote
1 answer

Android MyLocationOverlay... How to have it enabled, without it panning the map?? Possible?

I have a map I would like to show the User's Location when the location of the user is part of the map.. However I don't want it to pan the mapview to the users location with every update. How do I go about accomplishing this? It seems as though…
user756212
  • 522
  • 5
  • 16
1
vote
1 answer

MyLocationOverlay vs. LocationManager, and background Service

I am developing an app. in which I share my location with friends (very much like google latitude). I have a service which is running as daemon: it should display received locations, and publish current user location each x seconds. Now, being quite…
Stefano
  • 35
  • 6
1
vote
2 answers

How to setup onmylocationbuttonclicklistener using kotlin?

In java, the following code will be used to setup override in My Location Button. //add location button click listener map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener(){ @Override …
1
vote
1 answer

How to draw at the current GPS location on MapView using MyLocationOverlay?

I'm trying to draw a custom gps-location icon. I'm using MapView and have created a class MyLocationArrow that extends MyLocationOverlay. I override drawMyLocation() and draw a point at 100,100. But this is the coordinates on screen. How do I get…
Jonas
  • 121,568
  • 97
  • 310
  • 388
1
vote
1 answer

How to retrive geopoint from MyLocationNewOverlay using OSMdroid

Using MyLocationNewOverlay I can show user's current location in my mapview. mylocation = new MyLocationNewOverlay(mapView); mylocation.enableMyLocation(); mylocation.enableFollowLocation(); IMyLocationProvider…
user232803
  • 365
  • 6
  • 19
1
vote
1 answer

How can I get a more accurate location?

I'm trying to get my current location and show it on a map. Class com.google.android.maps.MyLocationOverlay.MyLocationOverlay does most of the work for you. But it's coming back with a very coarse result that's off by a couple of clicks. I'm…
Peter vdL
  • 4,953
  • 10
  • 40
  • 60
1
vote
2 answers

Android – MapFragment overlay button shadow, just like MyLocation button

I'm struggling to add a shadow to my custom overlay button over the google map. My goal is to make my custom button look just like Google's MyLocation button. Here's how my app looks like now: layout.xml