| 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 |
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]
Mar 1, 2013
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
@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
Issue 5300 has been merged into this issue.
Apr 29, 2016
(No comment was entered for this change.) |
|
| ► Sign in to add a comment |