Area above Mapkitplug isn't clickable

52 views
Skip to first unread message

Tom Krones

unread,
Sep 20, 2011, 11:31:20 PM9/20/11
to phonegap
I'm using the MapKitPlag plugin. If I use offsetTop to push the map
down from the top of the screen, there is transparent bar with a
height of approximately 15px above the map that isn't clickable.
Meaning, if you have a button directly above the map, you can't click
on it.

I have noticed that if you click on the right side of the transparent
bar, the buttonCallback function is called so I assume the transparent
bar is a container for the close button. How can I remove the close
button?

Has anyone else had this issue? Is there a way to remove the
transparent bar?

Thanks.

Giacomo Balli

unread,
Sep 21, 2011, 2:38:26 AM9/21/11
to phonegap
the plugin places the map as an overlay to your map therefore you cant
edit it with css, only from objc

Tom Krones

unread,
Sep 21, 2011, 9:07:18 AM9/21/11
to phon...@googlegroups.com
Right.  I'm not editing the map or using css to try to manipulate it.  I realize the map is a native mapkit instance.  

There is a transparent section directly above the map that is blocking clicks from getting to web app.  The transparent section is about 15 pixels tall and the width of the map.  I've been looking in the code (I'm not that familiar with objc) and there seems to be a parent UIView that contains and MKMapView and a UIButton.  My guess is the UIButton is causing the UIView to be taller then the map and causing that unclickable area.



--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

Tom Krones

unread,
Sep 21, 2011, 10:50:21 AM9/21/11
to phon...@googlegroups.com
I verified that this is the problem.  I set the UIView to have a background color and you can see the bar above the map.  I added a bug report to github.

I fixed the problem for me by removing the UIView and the UIButton.  Without them and only the MKMapView the unclickable area is gone.  I also removed the weird offsetTop divided by 2 because it doesn't make sense and the offset now works correctly.

If anyone wants to see mu code let me know, it removes the close button so if you use that this version isn't for you.

Tom
Reply all
Reply to author
Forward
0 new messages