MapComponent and the current location

21 views
Skip to first unread message

romanca...@gmail.com

unread,
Jul 1, 2016, 11:54:25 PM7/1/16
to CodenameOne Discussions
Hi! im implementing the MapComponent in my project and i found my self in a problem: I want to retrieve my current position from the native intefase of googlemaps as the component does.

before to make the change of component, i use to capture the locationmanager change of position and with that, update the component.

my question is: exist any way to capture the location from mapcomponent or i have to continue capturing the event from the locationmanager?

thaks!

If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

Shai Almog

unread,
Jul 2, 2016, 12:55:15 AM7/2/16
to CodenameOne Discussions, romanca...@gmail.com
Hi,
you mean MapContainer or native maps not MapComponent which is a different thing...

We don't expose that API in the MapContainer mostly because we want to keep the API small and usable. You can probably add such an API but I'm not sure if there is a need as the native location API will probably cache the location already and the permissions would already be set.

romanca...@gmail.com

unread,
Jul 2, 2016, 4:23:32 PM7/2/16
to CodenameOne Discussions, romanca...@gmail.com
sorry, i mean native maps
Reply all
Reply to author
Forward
0 new messages