Skip to content

Commit

Permalink
updated example #237
Browse files Browse the repository at this point in the history
  • Loading branch information
yagoferrer committed Apr 26, 2015
1 parent 974ac7b commit b79293d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions examples/code.snippet/tags.snippet.html
Expand Up @@ -23,7 +23,5 @@
};

map.addMarker(parks, options);

var find = map.findMarker({tags: 'parks'});
map.updateMarker(find, {visible: false});
map.updateMarker({tags: 'parks'}, {visible: false});
</code></pre></div>
4 changes: 2 additions & 2 deletions examples/tags.html
Expand Up @@ -38,13 +38,13 @@
'.places click': function (e) {
e.preventDefault();
placesVisible = !placesVisible;
map.updateMarker(map.findMarker({tags: 'places'}), {visible: placesVisible});
map.updateMarker({tags: 'places'}, {visible: placesVisible});
},

'.parks click': function (e) {
e.preventDefault();
parksVisible = !parksVisible;
map.updateMarker(map.findMarker({tags: 'parks'}), {visible: parksVisible});
map.updateMarker({tags: 'parks'}, {visible: parksVisible});
}
}
});
Expand Down

0 comments on commit b79293d

Please sign in to comment.