UNPKG

osm2geojson-lite

Version:

a lightweight yet faster osm (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in pure JavaScript without any 3rd party dependency

20 lines (19 loc) 436 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RefElements = void 0; class RefElements extends Map { constructor() { super(); this.binders = []; } add(k, v) { this.set(k, v); } addBinder(binder) { this.binders.push(binder); } bindAll() { this.binders.forEach((binder) => binder.bind()); } } exports.RefElements = RefElements;