From 3fae3befd33da47ec6061c861c74ca9538ec9273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Mon, 26 Jun 2017 12:03:51 +0200 Subject: [PATCH] Actually assign the replaced path for the default icon (#5580) --- src/layer/marker/Icon.Default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/marker/Icon.Default.js b/src/layer/marker/Icon.Default.js index 33d67ccd..b65e7890 100644 --- a/src/layer/marker/Icon.Default.js +++ b/src/layer/marker/Icon.Default.js @@ -52,7 +52,7 @@ export var IconDefault = Icon.extend({ if (path === null || path.indexOf('url') !== 0) { path = ''; } else { - path.replace(/^url\([\"\']?/, '').replace(/marker-icon\.png[\"\']?\)$/, ''); + path = path.replace(/^url\([\"\']?/, '').replace(/marker-icon\.png[\"\']?\)$/, ''); } return path;