This is how I use my own custom markers instead of the default markers on Google.
Add this line of code:
var icon = new GIcon(); icon.image = "http://yourwebsite.com/logo.png"; icon.shadow = "http://youwebsite.com/shadow.png"; icon.iconSize = new GSize(50, 28); icon.shadowSize = new GSize(68, 28); icon.iconAnchor = new GPoint(37, 59); icon.infoWindowAnchor = new GPoint(31, 8);
If necessary, adjust GSize for both icons and shadowSize. The first number in parentheses determines the width of your marker, and the second number determines the height (both in pixels).
Now add this line of code:
var marker = new GMarker(point, icon);
Only after this line:
function createMarker(point, name, address)
Hope this helps! You can see the blog post that I wrote about it at http://icode4you.net/developing-a-custom-store-locator-map-using-your-own-custom-markers-instead-of-googles-default -markers , just leave a comment if you have any questions or concerns.
Thelibzter
source share