Closed jernejpangersic closed 8 years ago
:+1: Would be nice. @jernejpangersic did you find a way to do it?
Given you have a marker with a fixed variable:
$marker = new Marker();
$marker->setVariable('my_marker');
Then, in your javascript code, you can use the following do hide the marker:
my_marker.setMap(null);
Hi,
I'm using your great bundle to show lots of locations on the map, using markers. I have about 12 different markers that I'm using. My question is, if I can some how make a "filter" button, that would hide one of the categories?
For example - I have markers for "Cemeteries". And would like to make a button that would hide/show those locations. Is this possible?
Thanks!