idly-data
v1.13.0
Published
[email protected]:kepta/idly-data.git
Downloads
72
Readme
iD's preset + data module copy.
Note differences
all.match
params are different from the iD'sall.match
.
To get the original API use the following code
presets = presetIndex(t);
var presetsMatch = presets.match;
presets.match = function (entity, resolver) {
var geometry = entity.geometry(resolver);
if (geometry === 'vertex' && entity.isOnAddressLine(resolver)) {
geometry = 'point';
}
return presetsMatch.call(this, entity.tags, geometry);
};
Better docs coming soon :P.