Yes but as per my question, I dont want to use the MarkerImage class,
I want to know if I can specify a css class name against a Marker
object where it will retrieve the image to use.

On Nov 29, 2:38 pm, Pil <[email protected]> wrote:
> You can do that by using an API markerImage:
>
>   var g = google.maps;
>   var image = new g.MarkerImage("sprite-icons.png",
>    new g.Size(20, 34),
>    new g.Point(0, 34),  <-- this are the sprite coords
>    new g.Point(10, 34));
>
> On Nov 29, 3:01 pm, parky128 <[email protected]> wrote:
>
> > Hi,
>
> > Is it possible to specifiy a css class name for a Marker which can be
> > used for the icon displayed on the map rather than defining a
> > MarkerImage class?
>
> > I have a sprite containing the icons I require for various markers and
> > class names in a css file which defines each icon in terms of where
> > the image is located in the sprite file.
>
> > I hope this makes sense!
>
> > Thanks,
> > Rob
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to