Questions tagged [itemizedoverlay]

204 questions
12
votes
2 answers

Redraw/refresh Itemizedoverlay? (android/google maps api)

I am making a GPS tracker using google maps API and displaying the users current position on a map using ItemizedOverylay. As the users position changes regularly, I've set up a CountDownTimer to delete the current Itemizedoverlay and add a new one…
AndroidNoob
  • 2,771
  • 2
  • 40
  • 53
11
votes
4 answers

Moving icons on a Android MapView

I'm working on an application that displays the location of moving items on a Google MapView. I need a way to update the position of the icons that represent the items (as well as change the facing of the icons every two seconds as updated data…
bsberry
  • 954
  • 1
  • 10
  • 24
10
votes
2 answers

Can "overlay" size be zoomed together with the google map on android?

I have been able to use "MapActivity" and "ItemizedOverlay" to draw overlays on google maps on android with Eclipse. But when the map is zooming in and out, the overlay does not change size. I want the overlay to be "fixed" on the map, and zoom in…
lionfly
  • 479
  • 7
  • 21
8
votes
1 answer

OSMdroid add custom icons to ItemizedOverlay

I am using ItemizedIconOverlay class and I'm currently displaying events on the map along with the user's position with the same default icon. How do I change the icon set for each overlay? Is there something similar to the google.maps example: …
bubbly
  • 495
  • 1
  • 10
  • 22
6
votes
2 answers

refreshing map ItemizedOverlay gives ArrayIndexOutOfBoundsException

Using the com.google.android.maps API, I've got a MapActivity which uses ItemizedOverlay to place several (up to about 1000) icons on a MapView. I want to refresh (or perhaps just add to the list of) the icons when the LocationListener detects the…
Thunder Rabbit
  • 5,405
  • 8
  • 44
  • 82
6
votes
3 answers

How to dynamically update a specific overlayitem

I am developing an location based android app which deals with lot of overlay items. Background: There are quite a few entities that I want to display over a map. The co-ordinates of the entities change in real time as their location change.…
andy
  • 484
  • 8
  • 21
6
votes
3 answers

Android: How to to set imageView as a marker in google map API android?

till now i was using drawable to populate marker on my map .Now i was wondering it would be cool if i could display custom imageview as a marker in map. till now i am doing it like itemized= new Itemazide(drawable, mContext); i want to…
Akram
  • 7,548
  • 8
  • 45
  • 72
5
votes
2 answers

Android Overlay Entire Map

How would you go about creating and ItemizedOverlay which covers the entire map? I have multiple markers on the map which are ItemizedOverlay classes. I want to create another ItemizedOverlay which covers the entire map to intercept touch events…
railwayparade
  • 5,154
  • 1
  • 39
  • 49
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

Android MapView ItemizedOverlay Draw onTap

I am trying to draw a custom shape in Draw method of ItemizedOverlay. Is it possible to get onTap event for the shape drawn. Currently onTap works for default drawable/marker. How to make it work for the shape drawn in Draw method?
4
votes
1 answer

android maps asynchronous loading of overlay items

I have a map view with thousand of items that i want to load on it. obviously i can't load them all when the view is created. I guess that I have to load them asynchronously according to what is currently displayed.. How can I load only items…
Matteo
  • 276
  • 1
  • 4
  • 18
4
votes
2 answers

How to clear / reset an ItemizedOverlay in Android?

I have a program that is creating an ItemizedOverlay and a map. Everything works fine upon startup. When you close ande re-open the app, I am using onRestart() to get updated information from my server and update the map. The problem is that at…
Chris
  • 5,485
  • 15
  • 68
  • 130
4
votes
1 answer

Remove all Overlays

I have the following code to add an Overlay myMapView.getOverlays().add(sites); myMapView.invalidate(); I also have the following remove code where sites is a global variable. if (sites != null) { //…
Lee Armstrong
  • 11,420
  • 15
  • 74
  • 122
4
votes
2 answers

Android mapView ItemizedOverlay setFocus does not work properly

Calling setFocus(null) on the ItemizedOverlay does not 'unfocus' current marker. According to the documentation: ... If the Item is not found, this is a no-op. You can also pass null to remove focus. Here's my code: MapItemizedOverlay public…
grzaks
  • 1,404
  • 2
  • 18
  • 31
4
votes
2 answers

Searching location in android map via edittext

I am on the way of developing a map service in android and I want to search a particular place like 'Berlin' in my map. For that I placed an EDITTEXT in my map and whenever I am entering the name I want to get that place in my map pointed with the…
thampi joseph
  • 700
  • 1
  • 8
  • 20
1
2 3
13 14