I'm developing app with multiple POIs. What I want to achieve is a filter to the POIs based on its category, e.g. restaurant, shops, atms, etc.
After I click a button on the screen named "restaurant", a helper function will help me filter out the "restaurant" I want, then pass a list of JSON poi data to load like
But when I test the app, after click the button "restaurant", the message below is showing the correct number of markers loaded (3).
But in main view, the 15 markers created initially still exist in view, and the 3 new markers stack on the previous ones.
Any way to clear the previous markers? I already reset the marker list inside the World.loadPoisFromJsonData function:
/* Empty list of visible markers. */ World.markerList = ;
My world is attached.
could you please provide the following data:
Thx and greetings
There are 2 ways to hide a GeoObject:
I would recommend you to run the list of GeoObjects that you have created with the first server call and, when the item does not fit your filter, disable it.