UNPKG

osm2geojson-ultra

Version:

a faster & more complete OSM & Overpass (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in TypeScript with txml for XML parsing

16 lines (15 loc) 301 B
export 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()); } }