function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Robert RobinsonRobert Robinson 

Creating Custom Markers using Static Resources

I want to change colors for the markers on a Google map. I saw the Summer '15 release notes ("Customize Visualforce Maps with Custom Markers") so I gave it a shot. I created a custom marker, saved it as a jpg, then saved the jpg as a static resource. I then added the follofing line to my Visualforce page:
...icon="{! URLFOR($Resource.HCNMarker, 'marker.jpg') }" />
The VF page saved, but when I pulled up a sample, the markers do not appear on the map. I went back and mispelled the name of the static resource and tried to save. I then received an error on the VF page, which tells me that the code is seeing the static resource; i am just not seeing the markers. Is there anything else I am missing?
Best Answer chosen by Robert Robinson
Robert RobinsonRobert Robinson
Revised the "icon" line, works fine now.