Questions tagged [itemizedoverlay]
204 questions
0
votes
1 answer
Google Maps Still showing a marker after its removal
ive been writing some app, and got stuck with removing an item from the map, this is a relavant snippet from my code:
protected boolean onTap(final int index) {
tapped=true;
AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
…

Ofek Ron
- 8,354
- 13
- 55
- 103
0
votes
1 answer
Android onTap mapView method not working after removing all points
The onTap() method working when there is minimum one point on map but when I remove all points from map then onTap() method is not working and I am unable to add points on map.
Please help...
Code:
private class CustomItemizedOverlay2 extends…

kamil
- 579
- 4
- 15
0
votes
1 answer
Android change Opacity of some items in ItemizedOverlay
I'm trying to change the alpha-channel of some OverlayItems in an ItemizedOverlay. The ItemizedOverlay is added to a MapView in Android.
If I use this code, all items have the same opacity.
According to the logs the condition hits in about…

Simon Woker
- 4,994
- 1
- 27
- 41
0
votes
1 answer
Sharing items created under itemizedOverlay
I am using an itemizedOverlay within my MapView that is generating waypoints. I have the ability to modify, add, delete these waypoints as desired. This MapView shares the screen as a fragment with a listView fragment. Currently the purpose of…

orion
- 89
- 2
- 7
0
votes
1 answer
how to get the latitude and longitude of a particular overlay item?
My map code is this:
public class ExampleActivity extends MapActivity {
private MapView map = null;
private MyLocationOverlay me = null;
@Override
public void onCreate(Bundle savedInstanceState) {
…

Archie.bpgc
- 23,812
- 38
- 150
- 226
0
votes
1 answer
Android Map Balloon Rotation
I am using the BalloonItemizedOverlay provided here:
https://github.com/jgilfelt/android-mapviewballoons
It's been working great. But my map is set up so that "up" is the user's bearing, i.e. if the user's bearing is East, then the map would be…

crocboy
- 414
- 1
- 6
- 14
0
votes
1 answer
Marking overlay icon as "selected" without changing icon
I have an android mapActivity which displays icons on the map using ItemizedOverlays.
If a user taps on an Icon, I want the user to see the icon as "selected" (making it transparent for example, or something of that sort). Is there a way to do it…

Eddie Dovzhik
- 297
- 1
- 6
- 14
0
votes
1 answer
Marker not getting displayed when adding within a dialog box onclick
I'm trying to add a marker on the map when user click on the map,
When i add the tabbed location marker within the onTouchEvent the map showing the corresponding marker at the tabbed place, (The values of title and snippet are hard coded).
But, the…

code-jaff
- 9,230
- 4
- 35
- 56
0
votes
1 answer
Android Itemizedoverlay! place and remove markers on map
I am trying to show the user's current location and allowing user to place one marker on the map. When user is tapped on the marker he placed, the marker will disappear and he can put another one on the map again.
The following code works fine in…

crystalWing
- 69
- 1
- 11
0
votes
1 answer
Android maps itemizedoverlay ConcurrentModificationException
I have a map with custom overlay and a bunch of markers. Because I'm doing markers grouping when zoom change happens I have to clear overlay, regroup items for new zoom and lay then on map again. I'm doing this in backround thread to get things…

Stan
- 163
- 2
- 10
0
votes
2 answers
How can I add an overlayItem object to an array?
Can you tell me please how I can add an overlayItem object to an array?
I tried in this way:
GeoPoint point = new GeoPoint((int)(Double.parseDouble(arrCoordonate[1])),(int)(Double.parseDouble(arrCoordonate[0])));
OverlayItem overlayItem =…

Andreea
- 151
- 1
- 3
- 12
0
votes
0 answers
NullPointerException when using MapActivity with ItemizedOverlay
I got a NullPointerException while using MapActvity
The exception result is :
05-19 15:34:23.345: E/AndroidRuntime(3126): FATAL EXCEPTION: main
05-19 15:34:23.345: E/AndroidRuntime(3126): java.lang.NullPointerException
05-19 15:34:23.345:…

Adham
- 63,550
- 98
- 229
- 344
0
votes
2 answers
Adding custom index to ArrayList or SortedMap when adding overlayitem to ItemizedOverlay
I'm using ItemizedOverlay to display points of events on a map. My main goal is to be able to find an event that was added earlier so that I can delete (or edit) just it without clearing the whole itemizedOverlay. So I decided to add each event to…

bubbly
- 495
- 1
- 10
- 22
0
votes
1 answer
Remove a specific GeoPoint from ItemizedOverlay?
I have a map with lots of points on it added to an ItemizedOverlay.
OverlayItem overlayItem = new OverlayItem(theGeoPoint, title, description);
itemizedOverlay.addOverlay(overlayItem);
mapOverlays.add(itemizedOverlay);
Is there a way to remove a…

bubbly
- 495
- 1
- 10
- 22
0
votes
2 answers
Displaying only the last Overlay item
What i do is to take data from an xml file and then using a Custom ItemizedOverlay i add the items.
public CustomItemizedOverlay callme(List result){
Drawable drawable = this.getResources().getDrawable(R.drawable.ic_launcher);
…

t0s
- 1,201
- 5
- 19
- 28