Open patrickwestphal opened 11 years ago
Here is my API suggestion:
store.addMap
should allow adding multiple mappings which become overlays based on the name
attribute - so a query will run on the union of all the maps (not there yet)id
attribute that enables referring to a specific mapstore.delete("mapName")
deletes all maps by name, such that store.mapName becomes undefined.store.mapName.clear()
clears all maps so that store.mapName is still defined, yet queries can only yield empty results.
When having set a Sponate mapping, e.g. via
there is no way to update it. Calling the
addMap
method again will result in an error:In some cases it would be very usefull to update or re-set a mapping for a given name, e.g. via
delMap
or by just callingaddMap
again.