I’ve successfully implemented a Google Maps API that pulls markers from a database and shows them on the map (I followed this example).
I’m now wanting to add the ability to load points that belong to a specific “type” from the database. I’m not sure how to modify the existing Google code to accomplish this. Say I have 3 categories: food, events, and landmarks. If a user click the button for landmarks, I only want the points with the “type” landmark to show up.
I would like to do this without having to reload the map over and over. I just want the points to show up based on what’s clicked.