yagoferrer / map-tools

map-tools.js is a Google Maps Feature-rich Javascript wrapper that makes things like: Marker filtering, asynchronous loading, working with TopoJSON or GeoJSON, animation and more. Much simpler with an easy-to-use API.
MIT License
88 stars 11 forks source link

Allow to work with multiple tags #268

Closed yagoferrer closed 9 years ago

yagoferrer commented 9 years ago

Since tags seem to be super useful I'm going to implement a better API to use and work with multiple tags.

Current syntax:

map.findMarker({tags: 'myTag'})

AND syntax:

map.findMarker({
tags: ['myTag1', 'myTag2']
})

OR syntax:

map.findMarker([

{tags: {'myTag1'},

{tags: 'myTag2'}
])