Google Maps marker grouping
问题 I'm trying to achieve the following thing: Have different types of markers on my map for example, schools, libraries, bus stops and I want to be able to show/hide each group of markers. I have been searching google for a while but nothing came up :/ Any ideas how this can be achieved ? 回答1: There are various ways to tackle this, but let me show you one approach. First, let's start with an array of locations (borrowed from the Google Maps API Tutorials): var beaches = [ ['Bondi Beach', -33