Skip to content

Commit

Permalink
Package and release v0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanwins committed Jun 13, 2023
1 parent 8f826a4 commit a7b212e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.8
- Add catch for source not being ready

## 0.0.7
- Make the `useSeviceBounds` option non-blocking so that data draws quicker and only the bounds check only gets applied to subsequent requests
- Update build process and packaging
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapbox-gl-arcgis-featureserver",
"version": "0.0.7",
"version": "0.0.8",
"description": "A small library for requesting features from an arcgis feature server using tiles",
"main": "dist/mapbox-gl-arcgis-featureserver.js",
"module": "dist/mapbox-gl-arcgis-featureserver.esm.js",
Expand Down
7 changes: 2 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,10 @@ export default class FeatureService {
}

_updateFcOnMap(fc) {
const source = this._map.getSource(this.sourceId);
if(source){
const source = this._map.getSource(this.sourceId)
if (source) {
source.setData(fc)
}
else{
console.warn(`Cannot find source with id: ${this.sourceId}`)
}
}

_doesTileOverlapBbox(tile, bbox) {
Expand Down

0 comments on commit a7b212e

Please sign in to comment.