Questions tagged [itemizedoverlay]

204 questions
2
votes
2 answers

How to delete all markers from the mapview with one click in Android?

I have 2 markers on the map and i want to delete them when the user clicks on a button. This is my method: public void deleteAllMarkers() { if(mapView.getOverlays().size() !=0) { //Log.d("MAPA…
DixieFlatline
  • 7,895
  • 24
  • 95
  • 147
2
votes
2 answers

Application stopped unexpectedly at launch

I've run this on a device and on the emulator. The app stops unexpectedly on both. I have not a clue what is wrong currently. It uses Google API Maps I compiled with Google Api 7. I followed this tutorial…
Chris Stryker
  • 1,058
  • 2
  • 10
  • 18
2
votes
1 answer

How to effectively use Google Maps API V2(with MapFragment, Google Map, Marker etc) to an older app that uses API V1(with MapView, GeoPoint etc),

I was working on a Google Map based project for over 6 months. I was using Google Maps API V1 and its developer API keys. While I was trying to release the app I understood that Google API V1 got deprecated! When I read about Google Maps API V2, I…
Niko
  • 1,367
  • 1
  • 13
  • 37
2
votes
1 answer

Android MapView custom markers are all the same size

I am writing an app that will show a map with a bunch of markers on it. I want the markers to be dynamic (showing dynamic content on them). Because the markers content is dynamic the size of each marker is different. I found this in the…
xbakesx
  • 13,202
  • 6
  • 48
  • 76
2
votes
1 answer

Android: NullPointer after trying to make an intent after onTab on ItemizedOverly

I have a MapsActivity in a TabHostActivity where I put a custom ItemizedOverlay over the map to display custom OverlayItems. In my ItemizedOverlay class the onTab method looks as follows @Override protected boolean onTap(int index) { …
Elias
  • 583
  • 4
  • 12
2
votes
1 answer

Cannot use putExtra method inside overlay class

This is my new android program which is a customized overlay class i can't send the reference value to the next activity using the putExtra() i can successfully run this project put it will not send any value to next class method can any one help me…
Hybrid Developer
  • 2,320
  • 1
  • 34
  • 55
2
votes
2 answers

overlay items not getting displayed

I have got all the search results for nearby places in an array list, but I am unable to display them on the map. When I debug my application, adding breakpoint inside the SitesOverlay() constructor, the places are populated, but not if I run as…
vjamit
  • 195
  • 1
  • 2
  • 10
2
votes
3 answers

MapView very slow with 1000 overlayitems on the map, even with only 2 visibles

I have a mapview showing 1000 overlayitems on the mapview. The map moves very slow even if only two overlayitems are visibles on the map (huge zoom applyed) It is possible to optimice the mapview to move more fast if only low cuantity of…
Pableras84
  • 1,195
  • 5
  • 18
  • 30
2
votes
2 answers

Adding ItemizedOverlay to my mapview

i am develpoing a map application with osm. i want to create some marker on my mapview. im using the folowwing code: this.mMyLocationOverlay = new ItemizedOverlay(this, items, new…
aTa
  • 641
  • 2
  • 8
  • 20
1
vote
2 answers

Programmatically creating icon to use as ItemizedOverlay drawable - Android

I am trying to programmatically draw a parking icon to place as the drawable for an itemized overlay on a map. The icon consists of a blue square with a white 'P' in its centre of which I would like to programmatically change the colour of the…
Azza
  • 41
  • 1
  • 6
1
vote
1 answer

How To Display A Bubble When Tap On Marker

I'm new in Android.I'm doing a project on Multicasting.Now I need a bubble to display in map when tapped on the Marker. I don't need the Dialog box,need a bubble view with a button and a textview.Want to display the textview first.Don't know what I…
1
vote
3 answers

IndexOutOfBoundsException when removing certain items from custom ItemizedOverlay

I've been struggling with the following problem for some days now. I have found many threads regarding this topic, but all are a little different or there was no solution. For my project I created a custom ItemizedOverlay and added this to my…
1
vote
1 answer

How to plot more than one locations (longitude + latitude) on google map?

I have an application which requires plotting two locations on google map ? One of these location will be my current location and second location is my friend's location which I have obtained.Now my problem is I'm abled to plot my friend's location…
dark_shadow
  • 3,503
  • 11
  • 56
  • 81
1
vote
1 answer

Android ItemizedOverlay issue

i have to put some overlays on map on specific point, i fetch the point coordinate from an API. i do the fetching in a asynctask. i succeeded to put the overlays, put when i do zoom on the map or span through it, the response is very slow. here's…
mauriyouth
  • 61
  • 1
  • 10
1
vote
1 answer

onTap(int i) event on ItemizedOverlay fires for only 1 item

I am using a MapView (google's) and add some overlays onto it. I use my own overlay class which looks like this: public class MyOverlay extends ItemizedOverlay When I zoom out and cause all my items to be at the same location and tap…