we use
marker.setIcon(icon.image,icon.iconSize,icon.iconAnchor);
where
icon.img = ''http://www.whatever.com/...."
icon.iconSize = [icon_data.width, icon_data.height ];
icon.iconAnchor = [icon_data.anchor_x, icon_data.anchor_y ]; // something
like [15, 15]
good luck
2010/10/25 Steve Kirtley <steve.kirtley at gmail.com>
> Hi guys,
>
> I''m being really dense today I think... but I have my maps all
running
> nicely now, adding custom markers - but my client saying they''re
all
> slightly out. I think it''s because I''m not setting the
*setIconAnchor*
> *property - but my head is not making sense of what I should be passing
> into that property.*
> *
> *
> *Can someone give me a practical example / some explanation?*
> *
> *
> Cheers
> Steve
>
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20101025/fdf2133a/attachment.htm>