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

Relative path not working for icon on a marker #135

Open
NickSiegmundt opened this issue Nov 11, 2016 · 0 comments
Open

Relative path not working for icon on a marker #135

NickSiegmundt opened this issue Nov 11, 2016 · 0 comments

Comments

@NickSiegmundt
Copy link

NickSiegmundt commented Nov 11, 2016

I have a folder called "icons" in the same folder as my javascript file that generates the map, but no matter what I do I can't get the marker to display an image from the folder, it always displays the default red marker. Here's what I've tried for my icon parameter:

icon: '/icons/1.png'
icon: './icons/1.png'
icon: 'icons/1.png'

I was able to get the icon to show up by first uploading it to imgur and then using the imgur URL, so i know it's not a size issue. Can you not use relative path's?

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

1 participant