idly-data
TypeScript icon, indicating that this package has built-in type declarations

1.13.0 • Public • Published

iD's preset + data module copy.

Note differences

  • all.match params are different from the iD's all.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.

Readme

Keywords

none

Package Sidebar

Install

npm i idly-data

Weekly Downloads

0

Version

1.13.0

License

ISC

Unpacked Size

21 MB

Total Files

1413

Last publish

Collaborators

  • kepta