You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
We are developing an app that allows the users to plot a location. They move around adding points to map out the boundary. What I have been trying to do is make it so they can change the position of the points after they have been added.
I go something working in the simulator but it fails on an Android device.
Basically you can press an existing pin, which brings up a dialog with the option to 'move'. then the next touch event is translated to map coordinates and the pin is moved there. This is via a addPointerReleasedListener on the containing form.
Seems to work fine in the simulator, but on the device the map component seems to consume the event.
I also attempted to override the pointerPressed method on the map, but this seems to never be called in the simulator or on the device.
I had though about inserting an invisible container over the map when this move option is selected (with a layered layout) and then removing it after.
Any ideas how to get this functionality?
IDE: NetBeans Windows Simulator/Android
Shai Almog
unread,
Jun 5, 2014, 1:02:06 AM6/5/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com, nick.m...@gmail.com
There is an RFE to add a touch API for Maps from one of the other pro-users. It should be doable in the native code.