Questions tagged [itemizedoverlay]
204 questions
4
votes
2 answers
Inaccurate positioning of overlays in Android's MapView
I'm trying to create an Activity with MapView and ListView inside it. I use C# and MonoDroid.
Layout looks like this

Mikhail Kuznetsov
- 51
- 6
4
votes
1 answer
using OnTap(int i) with multiple layers of ItemizedOverlay
I had to show multiple (around 600, all clickable to show some info about them) overlay items on mapview. For performance issues, i thought it would be wise to group them into different ItemizedOverlay classes because every group will show different…

tekin beyaz
- 105
- 1
- 8
3
votes
1 answer
osmdroid ItemizedOverlay error: The method boundCenterBottom(Drawable) is undefined for the type
I'm struggling for some hours now with this problem:
I'm trying to get my itemizedoverlay to work, but I keep getting this error:
The method boundCenterBottom(Drawable) is undefined for the type
my class:
public…

Szymon Łazaruk
- 63
- 1
- 10
3
votes
0 answers
Android MapActivity onLongPress / zooming mix up
I have a class extending MapActivity which has an overlay attached to it extending ItemizedOverlay. Inside the overlay I have a GestureDetector and a OnGestureListener. Now for my problem:
I have an action which triggers in the onLongPress of the…

Ryan
- 3,579
- 9
- 47
- 59
3
votes
2 answers
Android itemizedOverlay's onTap action overrided
I have a class :
class MapItemizedOverlay extends com.google.android.maps.ItemizedOverlay {
private Context context;
private ArrayList items = new ArrayList();
public MapItemizedOverlay(Context aContext, Drawable marker)…

Stefan Doychev
- 711
- 3
- 12
- 30
3
votes
1 answer
Android Overlays Overwriting/ removing the other
I'm working on an extremely basic application which essentially gets your current postion and then allows the user to select a Overlay icon and eventually "get directions to location"
What i can do atm is Show the users current location and all the…

Pages
- 51
- 3
3
votes
1 answer
Get current OverlayItem being drawn
I want to be able to get some reference to the curent object being drawn
@Override
public void draw(Canvas canvas, MapView mapView,boolean shadow) {
//Log.i("DRAW","MARKER");
super.draw(canvas, mapView, false);
…

Lee Armstrong
- 11,420
- 15
- 74
- 122
3
votes
2 answers
Overlay only draws line between first 2 GPS points in Android
I am experiencing an unusual error using ItemizedOverlay in Android.
I am creating a GPS tracking device that plots a route between waypoints stored in a database.
When I provide the first two sets of longitude and latitude points through the…

jcrowson
- 4,290
- 12
- 54
- 77
3
votes
4 answers
Current Loation is not picking in android
I am now moving with a project related to Google Map service. I would like to point out my current location in my map. For that, I have got an idea of using itemizedoverlay. I retrieve the current location by the help of Geopoint. But when I'm used…

Tony
- 277
- 2
- 3
- 10
3
votes
2 answers
How do you control the order of OverlayItems on an ItemizedOverlay?
First of all I inherited a lot of code here, although I have combed through it a few times looking for a reason for this behavior and I am stumped.
I want the last tapped OverlayItem to be on top of the rest, even if it looks silly. What I am…

xbakesx
- 13,202
- 6
- 48
- 76
3
votes
1 answer
How to draw only the markers that are visible on the map?
I want to learn drawing only the overlayitems that are visible on the map, because i'm showing a map with thousands of markers. I know that i must check if the overlayitem is visible with something like this:
private boolean…

Pableras84
- 1,195
- 5
- 18
- 30
3
votes
1 answer
Android MapActivity & ItemizedOverlay change current location onTouchEvent
I have an app with one activity that displays map and another class that used to place marker or any overlay items on Map.
It works great BUT for now when the user touch the map it shows a message with the new location (This code implemented on the…

Dave Martin
- 1,387
- 2
- 10
- 8
3
votes
2 answers
MapView onTap issue: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
There are similar questions to this, but it may not be obvious where the problem lies to someone (like me) trying to implement onTap events for a MapView . The problem/question is this:
You are trying to implement a customized ItemizedOverlay in a…

robguinness
- 16,266
- 14
- 55
- 65
2
votes
0 answers
Scale the image for a map overlay - google maps
I followed the tutorial for map overlays that Google offers (http://developer.android.com/resources/tutorials/views/hello-mapview.html) and it works fine, except the image for the overlay doesn't scale when you zoom in and out. I have Maps zoomed in…

Wingdom
- 439
- 2
- 10
- 23
2
votes
1 answer
Android Save Map state + itemized overlay
How do you save the map and overlay state when some other application or activity comes to the foreground or user clicks the home button? Typically, when the activity displays again the itemized overlay items are not longer present on the map.

user1247388
- 21
- 2