artmacks / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Issue 60: cannot change property for MarkerWithLabel Came back again in 2014 release #307

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using the following code to set the markers to visible but it doesn't work 
with 2014 release.

$('#map_canvas').gmap('find', 'markers', { 'property': 'tags', 'value': 
filters, 'operator': 'OR' }, function (marker, found) {
                    marker.set("labelVisible", found); // not working as of 2014
                    //marker.setVisible(found); //no working after custom pins
                });
            } else {
                $.each($('#map_canvas').gmap('get', 'markers'), function (i, marker) {
                    //$('#map_canvas').gmap('addBounds', marker.position);
                    marker.set("labelVisible", false);
                    //marker.setVisible(false);
                });
            }

Original issue reported on code.google.com by param8...@gmail.com on 13 May 2014 at 6:27