Skip to content

Commit a7b212e

Browse files
committed
Package and release v0.0.8
1 parent 8f826a4 commit a7b212e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.0.8
2+
- Add catch for source not being ready
3+
14
## 0.0.7
25
- Make the `useSeviceBounds` option non-blocking so that data draws quicker and only the bounds check only gets applied to subsequent requests
36
- Update build process and packaging

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mapbox-gl-arcgis-featureserver",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "A small library for requesting features from an arcgis feature server using tiles",
55
"main": "dist/mapbox-gl-arcgis-featureserver.js",
66
"module": "dist/mapbox-gl-arcgis-featureserver.esm.js",

src/main.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,10 @@ export default class FeatureService {
302302
}
303303

304304
_updateFcOnMap(fc) {
305-
const source = this._map.getSource(this.sourceId);
306-
if(source){
305+
const source = this._map.getSource(this.sourceId)
306+
if (source) {
307307
source.setData(fc)
308308
}
309-
else{
310-
console.warn(`Cannot find source with id: ${this.sourceId}`)
311-
}
312309
}
313310

314311
_doesTileOverlapBbox(tile, bbox) {

0 commit comments

Comments
 (0)