Skip to content
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

Markers not showing #1

Open
JacSavage opened this issue Jul 9, 2022 · 1 comment
Open

Markers not showing #1

JacSavage opened this issue Jul 9, 2022 · 1 comment

Comments

@JacSavage
Copy link

JacSavage commented Jul 9, 2022

Any idea why, when adding markers, the png-files for displaying the marker cannot be found?

`GEThttps://localhost:4321/dist/marker-icon_2273e3d8ad9264b7daa5bdbf8e6b47f8.png")marker-icon.png
[HTTP/1.1 404 Not Found 2ms]

GEThttps://localhost:4321/dist/marker-icon_2273e3d8ad9264b7daa5bdbf8e6b47f8.png")marker-shadow.png`

@fabiofranzini
Copy link

Try to use this css import:

leaflet.Icon.Default.imagePath = '//cdnjs.cloudflare.com/ajax/libs/leaflet/1.8.0/images/';
import 'leaflet/dist/leaflet.css';

It's working for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants