0

My question is simmilar to this. The main difference is that i have to implement InfoWindow (also interactive) not only for markers but for any point on the map which user taps(in particular polygons and polylines).

Is there any suitable solution like BalloonItemizedOverlay for v1?

Community
  • 1
  • 1
Johnny Doe
  • 3,280
  • 4
  • 29
  • 45

1 Answers1

2

When user clicks on a map and your OnMapClickListener.onMapClick is called, simply create a Marker with 0 by 0 pixels icon and force showing info window with marker.showInfoWindow().

MaciejGórski
  • 22,187
  • 7
  • 70
  • 94
  • This is a solution to show `InfoWindow`. But how can i create `InfoWindow` user can interact with(i had to place few buttons with different actions and info there)? Here http://stackoverflow.com/a/15040761/1562477 chose007 describes his solution, but it looks too tricky) Another way is to implement infoWindow using `PopupWindow` but disadvantages of this approach also described in his answer. – Johnny Doe Jul 22 '13 at 08:32
  • 1
    @JohnnyDoe In your case there is no `Marker`, so you can simply show a nice `Dialog` with custom background and things. That would perfectly fit. – MaciejGórski Jul 22 '13 at 08:42
  • sorry, i probably poorly formulated question. I have markers, polygons and polylines. `BalloonItemizedOverlay`-like behavior is exactly what i want to achieve(i have used it with maps v1). – Johnny Doe Jul 22 '13 at 08:51