Skip to content
This repository was archived by the owner on Aug 10, 2026. It is now read-only.
This repository was archived by the owner on Aug 10, 2026. It is now read-only.

Relative path not working for icon on a marker #135

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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