Questions tagged [itemizedoverlay]

204 questions
0
votes
1 answer

How to get the index of the clicked ItemizedIconOverlay in OSM

How do i get the index position of the ItemizedIconOverlay anotherItemizedIconOverlay when the user taps the icon? For example, when a user taps/clicks the first icon it should get the integer 0 List nodes =…
Mariel
  • 169
  • 2
  • 5
  • 18
0
votes
1 answer

How to implement SimpleOnGestureListener in Activity

This is primarily a design question. I've implemented SimpleOnGestureListener on an ItemizedOverlay because I wanted to catch the onLongPress event as well as the onDown and onTap events. Everything is working okay but now I need to transition to a…
John J Smith
  • 11,435
  • 9
  • 53
  • 72
0
votes
3 answers

Android ItemizedOverlay draw method question

Does anybody know the relationship between the members of an Android Itemized Overlay list and when draw() is called. Specifically, I'm trying to find out if draw is called once for each Overlay or once only for the whole set. Thanks, R.
Rich
  • 4,157
  • 5
  • 33
  • 45
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
2 answers

Android Mapping Overlay Question

I am developing an Android mapping application and I have managed to work Google's ItemizedOverlay tutorial into my code. I'm plotting my little circle on the map nicely. However, I would like to label my tiny symbol with its title -- all the time.…
Rich
  • 4,157
  • 5
  • 33
  • 45
0
votes
2 answers

How to persist options selected in AlertDialog spawned from ItemizedOverlay onTap method

In the description of how to add a list of options to an AlertDialog the official Android documentation alludes to saving a users preferences with one of the "data storage techniques." The examples assume the AlertDialog has been spawned within an …
ahsteele
  • 26,243
  • 28
  • 134
  • 248
0
votes
2 answers

Dynamic Overlays slowing down Google Maps (Android 2.1) on Nexus One

I'm trying to create a dynamic ItemizedOverylay (please see the code below) on Google Maps (Android 2.1) on a Nexus One. In my Activity (that extends MapActivity) I'm creating a data thread that is receiving data from the network. A 'handler' is…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
0
votes
2 answers

how to handle the visibility of the ItemizedOverlay in mapview in android?

i want set the visibility to itemized overlay in map view. if the zoom level is less than 10 i want to set visibility of overlay is GONE else VISIBLE. how to do that? and also cant set zoom level Listener.
Praveen
  • 90,477
  • 74
  • 177
  • 219
0
votes
1 answer

It is possible to show 600 pois in a mapview with a personalized pin without slowing the map?

I have a mapView with 600 pois on it, each poi is showing the same PIN. The movement of the map is very slow when the 600 pois are being showed at once. It is possible to show all of them without slowing the map movement? This is part of my code: My…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
2 answers

ItemizedOverlayWithBubble on top of the marker

I want to put my ItemizedOverlayWithBubble by OSMdroid on top of the marker, because now it's on the marker and when it shows my marker hides behind the bubble, because it's the same GeoPoint. What is the correct way? final…
0
votes
0 answers

how to draw a path using my current location and a passed text location value(intent passed from previous class)

public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.history); cabloc=(TextView)findViewById(R.id.txt_driverLocation); …
0
votes
1 answer

Load Map with bubbles on page load in android

In my application there is a map and the map has many pins. When the user taps on a pin, name of the touched pin appears in a balloon. What I want is to display all balloons on page loads, not when the user touches a pin. I have written the…
TharakaNirmana
  • 10,237
  • 8
  • 50
  • 69
0
votes
0 answers

onsingletapup from osmdroid calls multiple items

I've created an Osmdroid map with makers, but some markers are very close, so when i tap on it, there a lot of "onSingleTapUp called", it's like i'm clicking on all of them in the same time, and i don't see why, even when i can cleary see a blank…
Tsunaze
  • 3,204
  • 7
  • 44
  • 81
0
votes
2 answers

how to launch an activity with 'sartActivityForResult' from an ItemizedOverlay class

I have this scenario: Main activity with one button. Once clicked it launchs 'mapActivity' Map activity (extending MapActivity) uses an ItemizedOverlay (extending ItemizedOverlay) class to mark places over the map. Now, I want to launch another…
0
votes
2 answers

Problems updating user overlay drawable when GPS location has changed

I'm using Mapsforge to show a offline map and i want to display in realtime the user GPS location. I have a Overlay class that represents the user location on the map showing a drawable. When the device has received a new GPS location, a method from…