How to disable(not visible) maptype and zoom options on mapcontainer?

29 views
Skip to first unread message

Everson Badaró

unread,
Jun 12, 2019, 11:48:06 AM6/12/19
to CodenameOne Discussions
Hi, is there some way to disable(not visible) zoom icon and maptype icon from mapcontainer ?

Thank´s
Everson Badaró

Shai Almog

unread,
Jun 12, 2019, 11:27:01 PM6/12/19
to CodenameOne Discussions
Hi,
in which mode?
I don't think it's there in the native mode on the device.

Everson Badaró

unread,
Aug 3, 2019, 5:40:15 PM8/3/19
to CodenameOne Discussions
Hi, sorry, but how can i set my mapcontainer to native mode ?Hi, sorry, but how can i set my map container to native mode ?

The maptype and zoom options are still on my app, on device and the simulate.

I din´t find any hint to do this

Best regards,
Everson

Shai Almog

unread,
Aug 4, 2019, 12:29:35 AM8/4/19
to CodenameOne Discussions
Hi,
if you provided proper Android/iOS native keys the map will have a native mode in iOS/Android.
If you provided a JavaScript key in the web the map will use the JavaScript mode in the simulator and when the native mode isn't available. If you'll attach a screenshot I might be able to recognize the mode.

Everson Badaró

unread,
Aug 4, 2019, 9:05:49 AM8/4/19
to CodenameOne Discussions
Hi.

I attached a screenshot.  I provided google key of in this way :    mapaContainer = new MapContainer(GOOGLE_KEY);

But, I set my JS_KEY and GOOGLE_KEY with the same value, this value are google key api, I have sure.

Screenshot_20190804-093518.png

Thank´s for your time

Shai Almog

unread,
Aug 4, 2019, 10:25:00 PM8/4/19
to CodenameOne Discussions
Hi,
that looks to me like the JavaScript version of the map. This makes sense as zoom keys would be helpful in a web setting for portability.

Shai Almog

unread,
Aug 4, 2019, 10:25:57 PM8/4/19
to CodenameOne Discussions
To further clarify, it seems that the native Android/iOS maps don't initialize probably because of missing/misconfigured keys.
Reply all
Reply to author
Forward
0 new messages