javascript – How do I load an image into leaflet using a flask environment?-ThrowExceptions

Exception or error:

I am trying to load an icon into a marker as shown below

  var myIcon = L.icon({
    iconUrl: '/Users/k------/Documents/GitHub/Geospatial-Opportunities-for-Supermarkets/static/26501+.JPG',
    iconSize: [38, 95],
    iconAnchor: [22, 94],
    popupAnchor: [-3, -76]
  })

  L.marker([43.68, -79.38], {icon:myIcon}).addTo(myMap);

I’m getting a 404 NOT Found Error and I don’t know why

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *