MapComponent Questions

28 views
Skip to first unread message

romanca...@gmail.com

unread,
Jun 8, 2016, 7:13:13 PM6/8/16
to CodenameOne Discussions
hi! i wondering around mapcomponent and i want to ask you some questions:

    1) is

zoomTo(BoundingBox boundingBox) working properly? i tried to zoom using the boundaries taken from openstreet maps and it shows only a blank map. i need if someone can tell me if that method is working or not.

   2) Using the openstreet page when i enter a country's name it shows the boundaries of the country as show in the picture. its possible to doit with CN1?

   3) its possible making a incremental search control to show a container down the control who show the different occurrences who return the query of countries and where i can select one of them?










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

Shai Almog

unread,
Jun 9, 2016, 1:13:11 AM6/9/16
to CodenameOne Discussions, romanca...@gmail.com
Hi,

we put most of our efforts into the native maps which are what most developers prefer: https://github.com/codenameone/codenameone-google-maps/

1. It should work but coordinates use a somewhat different space for measurement. I don't recall exactly but there should be discussion of this in the forum/stackoverflow.

2. You can add overlays in any shape. Having the underlying map implementation do that is something else, I'm guessing you can subclass the map provider or replace it entirely.

3. You can use the auto complete field or just use a text field with a data change listener.
Reply all
Reply to author
Forward
0 new messages