Skip to content

Commit

Permalink
Better integration between graphile-worker job and mapbox-gl-esri-sou…
Browse files Browse the repository at this point in the history
…rces
  • Loading branch information
underbluewaters committed Feb 27, 2024
1 parent 18363b0 commit 03df24d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@
"typescript.tsdk": "node_modules/typescript/lib",
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"testing.openTesting": "neverOpen"
}
5 changes: 4 additions & 1 deletion packages/api/tasks/beginFeatureLayerConversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
styleForFeatureLayer,
setCanvasPolyfill,
setCanvasToDataURLPolyfill,
} from "@seasketch/mapbox-gl-esri-sources/dist/index";
} from "@seasketch/mapbox-gl-esri-sources";
import { createHash } from "crypto";
import { v4 as uuid } from "uuid";
import * as S3 from "aws-sdk/clients/s3";
Expand Down Expand Up @@ -258,6 +258,9 @@ export default async function beginFeatureLayerConversion(
console.error(e);
return handleError(`Problem generating style. ${e.message}`);
}
if (!styleInfo) {
return handleError("Problem generating style");
}
glStyle = styleInfo.layers.map((l) => {
// @ts-ignore
delete l.id;
Expand Down
1 change: 1 addition & 0 deletions packages/mapbox-gl-esri-sources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Render data services from ArcGIS in MapBox GL JS",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"scripts": {
"start": "http-server",
"watch": "rollup -c rollup.config.js --watch",
Expand Down

0 comments on commit 03df24d

Please sign in to comment.