Skip to content

Commit

Permalink
fix: adjusts filter in permalink for image layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mholthausen committed Dec 12, 2022
1 parent 4506ce6 commit a977ac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PermalinkUtil/PermalinkUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export class PermalinkUtil {
map: OlMap,
separator: string = ';',
identifier: (layer: OlBaseLayer) => string = l => l?.get('name'),
filter = (layer: OlBaseLayer) => layer instanceof OlTileLayer
filter = (layer: OlBaseLayer) =>
layer instanceof OlTileLayer || layer instanceof OlImageLayer
): string | null => {
const url = new URL(window.location.href);
const center = url.searchParams.get('center');
Expand Down

0 comments on commit a977ac5

Please sign in to comment.