Using Google Maps in BrowserComponent

34 views
Skip to first unread message

roque...@gmail.com

unread,
Sep 4, 2017, 12:24:19 PM9/4/17
to CodenameOne Discussions
Hello

I need to use certain google maps features like grouping markers in Codename One, is it possible to do with the native map CN1Lib?

Is it possible to use Google Maps in a BrowserComponent ?, there are some examples.

Best regards

Shai Almog

unread,
Sep 4, 2017, 11:47:17 PM9/4/17
to CodenameOne Discussions, roque...@gmail.com
Hi,
this isn't currently implemented in the native maps code. You should generally use the native maps rather than use HTML as it feels better.

Since the native maps support an HTML/JS fallback mode you can extract the code from there if you insist or you can enhance the existing maps API and submit a pull request e.g.:


The cn1lib source is a bit much initially but it's just a native interface wrapper around the google API you can learn more about native interfaces in the developer guide and here: https://www.codenameone.com/how-do-i---access-native-device-functionality-invoke-native-interfaces.html
Reply all
Reply to author
Forward
0 new messages