My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 5035: MapView V2 doesn't have MapView.LayoutParams unlike MapView V1 nor does Map V2 support clickable items inside InfoWindow
24 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by [email protected], Feb 28, 2013
I have a requirement to show a bubble on click of a pin on Map with bubble containing clickable views (buttons,links etc).

I was able to achieve it with MapView V1 
as we have an option to add view at a specified GeoPoint using
public MapView.LayoutParams(int width,int height,GeoPoint point,int x,int y,int alignment);

With MapV2 we have a nice feature of InfoWindowAdapter which gives option to achieve the same,but unfortunately items inside InfoWindow are individually clickable.

Nor does it have something similar to MapView.LayoutParams which can affix any view to a GeoPoint.
Also placing a view directly as a child of MapView seems to have its own issues if screen is rotated.

Alternatively GroundOverlay's can be considered but they support only images.

It would be nice to have either InfoWindow placing either view directly rather than its snapshot( or have some option similar to MapView.LayoutParams to anchor my view to a GeoPoint.)

This is one nice feature I would be missing as I migrate to MapsV2 and I have to restrict my self with one click listener for entire view.

Feb 28, 2013
#1 [email protected]
Corrections: 
1)unfortunately items inside InfoWindow are not individually clickable.
2)It would be nice to have InfoWindow placing a view directly with clickable view rather than its snapshot.

Mar 1, 2013
#2 [email protected]
I really want clickable items inside InfoWindow function too!!!
BTW, I want to override marker onDrag function from long click to drag to click to drag!!
Mar 4, 2013
#3 [email protected]
@1: Because of the way the new Google Maps Android API is designed (IPC to Google Play Service APK), the view displayed in the info window is not your actual View but rather a snapshot of it. Because of this, I seriously don't think that's possible.
Aug 1, 2013
#4 [email protected]
 Issue 5300  has been merged into this issue.
Apr 29, 2016
#5 [email protected]
(No comment was entered for this change.)
NetworkLocation.apk
0 bytes   Download
Sign in to add a comment

Powered by Google Project Hosting