From 42b2d099664e6e35b9bf926999e822b24dc28d68 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Tue, 22 Jun 2021 19:21:37 -0300 Subject: [PATCH] Adjusting pin size --- src/app/components/map/LeafLetMap.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/map/LeafLetMap.js b/src/app/components/map/LeafLetMap.js index 1c970e7..0276b6c 100644 --- a/src/app/components/map/LeafLetMap.js +++ b/src/app/components/map/LeafLetMap.js @@ -12,7 +12,6 @@ const loadLocalAsset = async (asset) => { } catch (error) { console.warn(error); - // console.warn("Unable to resolve index file"); } return "asidaosid"; } @@ -63,13 +62,12 @@ async function insertMarker(mapRef, ID, coordinate, icon) { iconSvg = await loadLocalAsset(icon); } - //console.log(String(iconSvg)); mapRef.injectJavaScript(` var customIcon = L.divIcon({ className: 'marker-class', html: \`${iconSvg}\`, - iconSize: 100 + iconSize: 70 }); // Check if there is no other marker with same ID already in map