Skip to content

Commit b66c943

Browse files
committed
layer should always have a decoded evalscript
1 parent b14ac9f commit b66c943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacyCompat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function legacyGetMapFromParams(
7474
`Evalsource ${evalsource} is not valid on this layer (was expecting ${expectedEvalsource})`,
7575
);
7676
}
77-
layer.setEvalscript(evalscript);
77+
layer.setEvalscript(decodedEvalscript);
7878
} else if (evalscriptUrl) {
7979
// Processing API doesn't support evalscriptUrl, bail out:
8080
throw new Error('Parameter evalscriptUrl is not supported with Processing API');

0 commit comments

Comments
 (0)