I would like (in my Android app using Google maps api v2) to hide or show markers on my GoogleMap object according to a category, just like in the google maps web api, for example:
I have a GoogleMap with 50 Markers, 20 of them represent restaurants, 20 them represent bus stops, and 10 are cinemas.
Is it possible on Android google maps api v2 to do filtering on these markers, by hiding all the restaurant markers if we un-tick a checkbox for example?
I would like to do something like that but on my Android device using google maps api v2: http://www.geocodezip.com/v3_MW_example_categories.html
Sorry for the basic question but I am a beginner.
You can use dialog if you want to filter your locations.
Yes you can! And here's how...
//mMap is an instance of GoogleMap that has already been initialized else where
//Your "Item" class will need at least a unique id, latitude and longitude.
Here, LocationArray is ArrayList of Locations, which are plotted on map. We want to show all markers plotted on map.
Try this way.
On Click Event
This way can do using loop..
Let me know if it works for you.