From 7d9c9c57fd30508b39b2dca2d20579b8c1f4271b Mon Sep 17 00:00:00 2001 From: Craig Kochis Date: Wed, 4 Sep 2024 17:15:41 -0400 Subject: [PATCH] fix bug using wrong cache key for custom markers (#182) --- README.md | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- src/ui/RadarMarker.ts | 2 +- src/version.ts | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0be5af9c..2f09a600 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -130,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index fe0b5715..2e01c77e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.4.1", + "version": "4.4.2", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 39b01b49..4c96ca43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.4.1", + "version": "4.4.2", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/ui/RadarMarker.ts b/src/ui/RadarMarker.ts index d76342f2..06db4a09 100644 --- a/src/ui/RadarMarker.ts +++ b/src/ui/RadarMarker.ts @@ -169,7 +169,7 @@ class RadarMarker extends maplibregl.Marker { responseType: 'blob', }) .then(({ data }) => { - IMAGE_CACHE.set(markerOptions.url as string, data); // cache data + IMAGE_CACHE.set(markerOptions.marker as string, data); // cache data onSuccess(data) }) .catch(onError); diff --git a/src/version.ts b/src/version.ts index 45efae50..eecbc8b8 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.4.1'; +export default '4.4.2';