moshen / node-googlemaps

A simple way to query the Google Maps API from Node.js
MIT License
559 stars 148 forks source link

Relative path not working for icon on a marker #135

Open NickSiegmundt opened 7 years ago

NickSiegmundt commented 7 years ago

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?