Questions tagged [overlayitem]
48 questions
0
votes
1 answer
Android multiple overlay dynamically on map
I would like some help regarding getting the lat and lon. What I mean is: I have lat and lon parsed from the web (using XMLPullParser). Now, my biggest problem is to get all the values (lat and lon) and plot them on the map. Please, help!
Here's…

ito
- 154
- 3
- 15
0
votes
1 answer
Problem with drawing location using a custom Drawable in an Android OverlayItem
This code is using
the Google APIs (level 8).
When I update the OverlayItem to use a custom drawable the Canvas
object seems to draw the pixels in the wrong location. In this
example I'm trying to draw a circle in Louisiana. When viewing…

NewUser
- 1
- 1
- 1
0
votes
1 answer
MapView overlay item needs to be a link to a webview
So I have a Map that displays markers for all my friends based their coordinates. Right now when you click a marker it pops up an overlay and gives their details. What I need to figure out is how to have that overlay include a clickable link that…

bMon
- 962
- 4
- 15
- 33
0
votes
1 answer
Increase Hit detection on ItemizedOverlay
I have an itemizedOverlay extended and I want to increase the hit detection on the OverLayItem's if this is possible?

Lee Armstrong
- 11,420
- 15
- 74
- 122
0
votes
1 answer
How to get user's current location and plot it on the map using OverlayItem
I am now working on a application related to plotting buses and bus stops on the map. One task is to get the user's current location and stop updating when the app pauses and continue updating when the app resumes. Also, location update occurs at…

988lmh988
- 1
- 1
0
votes
1 answer
Circle drawable looks like oval on map
Hi I am trying create circle shape on map. For that i am using ground overlay item. I tried draw circle shape with drawable xml file. First I tried in normal activity layout and it shows me perfect circle shape. same thing I tried to draw on map it…

nilkash
- 7,408
- 32
- 99
- 176
0
votes
2 answers
Detecting click event on overlay item in android map (V2)
Hi I am developing small android application in which I am using android map V2. I include ground overlay item in my map. So I want to detect click on overlay item. I added overlay item in following manner.
LatLng NEWARK = new LatLng(0, 0);
…

nilkash
- 7,408
- 32
- 99
- 176
0
votes
1 answer
To put a click event on snippet of marker
I have made an application in android for google map using mapView api2,I have tried the folowing code.In that i have made two markers and now i want to out click events on both the marker's "snippet"....not on marker..on snippet..please help…

jigar
- 1,571
- 6
- 23
- 46
0
votes
0 answers
Setting a custom icon with OverlayItem.setMarker() - Android
I am trying to set my own custom marker for points on a map but they keep coming out as the marker "defaultIcon"
In my main:
itemizedOverlay = new OurItemizedOverlay(defaultIcon, this);
Add Point to map:
public void…

TomSelleck
- 6,706
- 22
- 82
- 151
0
votes
1 answer
how to ask an overlay item one the map
I have created an overlayitem list for my activity. But I want add item to the list(for example, I create a button for trigger the event) after I run the application and show the item on the map. How can I do it?

HeikiCyan
- 157
- 1
- 2
- 11
0
votes
1 answer
null pointer exception while touching in overlay item
Hey people i am new to android here am working with a map oriented project now i got a problem while i touch on the overlay item it shows null-pointer exception in log-cat i cannot understand what does it mean.Here i have two classes…

Hybrid Developer
- 2,320
- 1
- 34
- 55
0
votes
2 answers
How to set geopoint of an overlay item and put onto map correctly?
What I want to is display the item just above the line. How do I set item's position for doing that? (as shown in an second image as below)

Mustafa Güven
- 15,526
- 11
- 63
- 83
0
votes
1 answer
Android: How to check visibility of OverlayItems on MapView
Is there a way to check the visibility of an OverlayItem? So all I want to know is, if a overlay Item is shown on the map or already outside of the projection.
I'm afraid using the bounding box method of my original object which is represented by…

Tobias Reich
- 4,952
- 3
- 47
- 90
0
votes
1 answer
adding fields to OverlayItem
A simple questions about OverlayItem. I my map android application, tapping on a location, I would show some info like: name, infoq, info2, info3. So I extend the OverlayItems:
public class NewOverlayItem extends OverlayItem {
public…

doxsi
- 1,002
- 19
- 42
0
votes
1 answer
android, customized ItemizedOverlay
There is already an overlay, drawing something on a map view. I want to add another overlay and a customized item to the map view. Nothing shows. What's wrong with my code? Thanks heaps.
My sub-class of ItemizedOverlay
public class…

EyeQ Tech
- 7,198
- 18
- 72
- 126