Using Sprites

12 views
Skip to first unread message

Ed Urtz

unread,
Jun 13, 2009, 12:32:52 PM6/13/09
to Google Maps JavaScript API v3
I have successfully tested pre-loading images used as Marker images
in the browser with gains in page rendering times, however, when I try
loading a sprite in FF on a desktop - it draws nicely but there's no
'click' listener on any of the markers.
Equally the rollover - text message fails to appear.
Load the same page into Opera and it behaves like a good 'un.
Bit difficult to post the code onto a gash page so I wondered if
anyone else has had this problem and if so did they get round the
problem?
Thanks

Esa

unread,
Jun 16, 2009, 5:16:37 PM6/16/09
to Google Maps JavaScript API v3
I guess that you have defined a single image map (shape property) and
you are using it for all the sprite positions.

Shape objects (if used) have to be created separately for each sprite
position.
Reply all
Reply to author
Forward
0 new messages