| 61 | |
| 62 | export class FGBLayer { |
| 63 | constructor(options = {}) { |
| 64 | this.id = options.layerID ? options.layerID : CommonUtil.createUniqueID('FGBLayer_'); |
| 65 | this.layerId = this.id + 'outer'; |
| 66 | this._sourceId = this.layerId; |
| 67 | this.options = options; |
| 68 | this.strategy = options.strategy || 'bbox'; |
| 69 | this.url = options.url; |
| 70 | this.layerType = ''; |
| 71 | this.extent = options.extent; |
| 72 | this.overlay = true; |
| 73 | this.type='custom'; |
| 74 | this.renderingMode = '3d'; |
| 75 | this._updateFeaturesFn = this._updateFeatures.bind(this); |
| 76 | this.interaction = true; |
| 77 | this.events = 'all'; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * @function FGBLayer.prototype.onAdd |