Skip to content

Relative path not working for icon on a marker #135

Open
@NickSiegmundt

Description

@NickSiegmundt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions