()
| 163 | } |
| 164 | |
| 165 | _sendMapToUser() { |
| 166 | const layersFromStyle = this._generateAppreciableLayers(); |
| 167 | this._sourceListModel = new SourceListModelV2({ |
| 168 | map: this.map, |
| 169 | layers: layersFromStyle, |
| 170 | appendLayers: this._appendLayers |
| 171 | }); |
| 172 | this._sourceListModel.on({ |
| 173 | layerupdatechanged: (params) => { |
| 174 | this.fire('layerupdatechanged', params); |
| 175 | } |
| 176 | }); |
| 177 | this.fire('mapcreatesucceeded', { |
| 178 | map: this.map, |
| 179 | mapparams: { title: this.mapOptions.name, description: '' }, |
| 180 | layers: this.getSelfAppreciableLayers() |
| 181 | }); |
| 182 | } |
| 183 | }; |
| 184 | } |
no test coverage detected