Skip to content

Commit 83b0b95

Browse files
committed
rm fixme with arrows
1 parent ee3819e commit 83b0b95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/om-protocol.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ const URL_REGEX = /^om:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)$/;
6060

6161
const getStateKeyFromUrl = (url: string): string => {
6262
const match = url.match(URL_REGEX);
63-
// FIXME: removing arrows=true avoids duplicate decoding for raster and vector layers (for windspeeds)
6463
// This should be generic over any vector layer settings.
6564
if (match) {
6665
// match[1] is "<omUrl>?query" without the leading "om://"
67-
return match[1].replace('arrows=true', '');
66+
return match[1];
6867
}
6968
// JSON request or non-tile URL: just strip the om:// prefix
70-
return url.replace(/^om:\/\//, '').replace('arrows=true', '');
69+
return url.replace(/^om:\/\//, '');
7170
};
7271

7372
const getOrCreateUrlState = (

0 commit comments

Comments
 (0)