Async Loop

47 views
Skip to first unread message

Rocotoco Rodriguez

unread,
Jul 11, 2017, 9:55:02 PM7/11/17
to CodenameOne Discussions
Hi shai:

     i want to ask you if exists any way to make a loop who doesnt block the thread . i need it to add thousands of markers to a map.


thanks


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 12, 2017, 12:52:37 AM7/12/17
to CodenameOne Discussions
Hi,
you can use a thread and callSerially but that's probably a mistake. If you add thousands of entries your map would probably slow to a crawl.
You need to use a listener on the map and add a few elements based on the bounding area and zoom level
Reply all
Reply to author
Forward
0 new messages