-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load icon #5
Comments
I would be grateful if you help me overcome this :) |
hey @dixitt5 i just loaded up the application and am unable to reproduce this issue. are you getting any errors aside from the missing image? |
@colbyfayock No, everything is working fine besides the marker icon. |
running into the same issue |
@sebastiancrossa are you simply spinning up the starter from scratch? are you doing anything else? what browser? |
I had the same problem, I pulled code out of here into my own project, and the icon wasn't loading. What i was missing is the webpack config in the next-leaflet-starter/next.config.js Line 14 in 8a7d689
For whatever reason my next config was a mjs file, so I had to make a couple of tweaks to get it to work. Pasted below. Hope this helps.
|
oooo @dixitt5 @sebastiancrossa can you see if this resolves your issues as well? perhaps it makes sense for me to add a comment near where the images are being referenced to help point to this |
Since we request images from public dir, paths should start with "/" in file "src/components/Map/DynamicMap.js":
|
I'm able to load leaflet map onto my next js app because of this, thank you for that.
only one problem i'm facing is the marker icon is not showing up, rather looks like this:
The text was updated successfully, but these errors were encountered: