Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
PETRA LUTZ
2,922 PointsRemove markers that does NOT belong to a certain path (Google Maps SDK)
What I have is markers with coordinates (latitude, longitude) that shows on a map and that are coming from a JSON file. My problem is that I wanna show only the markers that are inside a drawn route.
Example :
Let's us say that a route is draw from a user's location to his chosen destination, in that case I want to show only markers that are inside the drawn route.
I have been searching a lot about that, and I think I've found something related to GMSpath in Google's Maps documentation, but I don't know how to use it in order to exclude markers that are outside of the drawn route.