Browse Source

CategoryOverpass: expose user options in twigData with user prefix

master
parent
commit
ea154b039c
  1. 5
      src/CategoryOverpass.js

5
src/CategoryOverpass.js

@ -107,6 +107,11 @@ function CategoryOverpass (options, data) {
this.layer.on('add', (ob, data) => this.emit('add', ob, data))
this.layer.on('remove', (ob, data) => this.emit('remove', ob, data))
this.layer.on('zoomChange', (ob, data) => this.emit('remove', ob, data))
this.layer.on('twigData',
(ob, data, result) => {
result.user = global.options
}
)
p = document.createElement('div')
p.className = 'loadingIndicator'

Loading…
Cancel
Save