aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/mapUtil.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/mapUtil.js')
-rw-r--r--modern/src/map/mapUtil.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/map/mapUtil.js b/modern/src/map/mapUtil.js
index ca7b3af..43038ef 100644
--- a/modern/src/map/mapUtil.js
+++ b/modern/src/map/mapUtil.js
@@ -36,10 +36,12 @@ export const prepareIcon = (background, icon, color) => {
canvas.style.height = `${background.height}px`;
const context = canvas.getContext('2d');
- context.drawImage(background, 0, 0, canvas.width, canvas.height);
+ if (!icon) {
+ context.drawImage(background, 0, 0, canvas.width, canvas.height);
+ }
if (icon) {
- const iconRatio = 0.8;
+ const iconRatio = 1;
const imageWidth = canvas.width * iconRatio;
const imageHeight = canvas.height * iconRatio;
/*if (navigator.userAgent.indexOf('Firefox') > 0) {*/