Display Custom Marker in Google Maps Using Relative File Path [duplicate]
问题 This question already has an answer here : Using a Relative Path in Javascript to Set Google Map Icon (1 answer) Closed 3 years ago . I am using Google's Javascript APi v.3.0 to develop a web app. I want to be able to display custom markers, but they don't show up when I try to add them. I've written a helper function in Javascript to display a custom marker: function addCustomMarker(iconFile,iconTitle,lat,lng){ var loc = new google.maps.LatLng(lat,lng); var marker = new google.maps.Marker({