Questions tagged [overlayitem]
48 questions
9
votes
3 answers
how to get the long & lat value of four corners in the mapview in android?
i working on map view. i want to put overlay item on the map view. that overlay items are all depends on currently showing map view and zoom level. how to get current map view's longitude and latitude of that four corner and how to analyze how…

Praveen
- 90,477
- 74
- 177
- 219
5
votes
1 answer
Controlling OverlayItem size
I'm building a map with a few dozen OverlayItems in a single ItemizedOverlay. My map is made to be viewed very close up (about zoom level 18+), with the OverlayItems in very close proximity to one another. The map looks good when zoomed in. …

josh-cain
- 4,997
- 7
- 35
- 55
4
votes
1 answer
Clickable List within OverlayItem (MapView for Android)
I have a map view with several pins plotted on different addresses. All works very well.
The issue arises when you have more than one item pointing to the same address.
For example,
Unit 1/ 45 ABC Street, XYZ
Unit 7/ 45 ABC Street, XYZ.
I use…

Neo
- 1,181
- 11
- 22
4
votes
1 answer
How to draw unique labels on overlayitem of mapview in android
Here is a screenshot of something which I'm trying to achieve
I would like to add unique label (like numbers) to each overlayitem of the map. I have done the basic part of adding the overlayitems and showing them on the map. But this where I am…

pankajagarwal
- 13,462
- 14
- 54
- 65
4
votes
6 answers
Android application: showing overlay items in AsyncTask
I am building an android application that uses google maps to overlay items. The latitude and longitude for the items I get from a MySQL database. To do this I connect to a php script using HTTP in Async Task. My code for displaying items on the map…

pixie
- 151
- 2
- 10
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
3 answers
"Hiding" an OverlayItem in Android , possible?
I am working on a MapView app, and would like to place a nice little easter egg in the program. What I am trying to do is have an overlayitem that is basically invisible, but when tapped will trigger an event to show a view.
Now on the iPhone i…

user756212
- 522
- 5
- 16
3
votes
3 answers
Android: ItemizedOverlay onTouchEvent and onTap overlapping
I am trying to place a marker on a map overlay and then present a dialog when the user selects the drawable. The problem is the events seem to overlap. After I click the map and the marker is drawn, the onTap fires immediately afterwards, and…

CWayman
- 33
- 1
- 1
- 5
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
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
2
votes
2 answers
Android : Google Maps crashes when zooming (more than 1500 icons)
I'd like to display many icons with the Google API (more than 2,000 icons). I created a simple activity, based on this tuto .
It displays without any problem icons when accessing the map. However, when I zoom in/out a few times, a…

johann
- 1,115
- 8
- 34
- 60
2
votes
1 answer
Android MapView - Extending OverlayItem to store a URL for access in onTap
[Update: Thanks to Craigy's suggestion below, I cleaned up my code a little and added 'final' before the string in onTap, and everything works great!]
I'm trying to store a URL (along with a title and snippet) in a custom OverlayItem on my app's…

geerlingguy
- 4,682
- 8
- 56
- 92
2
votes
1 answer
GoogleMaps: custom ItemizedOverlay and OverlayItem, the correct way to show different marker
I've been searching long for clear informations about the right way of extending ItemizedOverlay and OverlayItem, but the result I get does not satisfy me yet.
In a few words, I need to show on a map different kind of markers related to a number of…

e-cal
- 1,661
- 2
- 20
- 28
2
votes
1 answer
Android maps ItemizedOverlay- Bound mismatch
I am trying to walk through official tutorial for android google maps:
http://developer.android.com/guide/tutorials/views/hello-mapview.html
I am implementing the class which is extending ItemizedOverlay:
public class HelloItemizedOverlay- …

rideronthestorm
- 727
- 1
- 13
- 32