Browse Source

Adjusting pin size

master
GabrielTrettel 3 years ago
parent
commit
42b2d09966
  1. 4
      src/app/components/map/LeafLetMap.js

4
src/app/components/map/LeafLetMap.js

@ -12,7 +12,6 @@ const loadLocalAsset = async (asset) => {
} catch (error) { } catch (error) {
console.warn(error); console.warn(error);
// console.warn("Unable to resolve index file");
} }
return "asidaosid"; return "asidaosid";
} }
@ -63,13 +62,12 @@ async function insertMarker(mapRef, ID, coordinate, icon) {
iconSvg = await loadLocalAsset(icon); iconSvg = await loadLocalAsset(icon);
} }
//console.log(String(iconSvg));
mapRef.injectJavaScript(` mapRef.injectJavaScript(`
var customIcon = L.divIcon({ var customIcon = L.divIcon({
className: 'marker-class', className: 'marker-class',
html: \`${iconSvg}\`, html: \`${iconSvg}\`,
iconSize: 100
iconSize: 70
}); });
// Check if there is no other marker with same ID already in map // Check if there is no other marker with same ID already in map

Loading…
Cancel
Save