Hi dear Google,
I had found how to create marker using sprite instead of icon. I took
a look at the html generated and was wondered why do you use the
following structure:
<div style="overflow: hidden; width: 25px; height: 40px; position:
absolute; left: 267px; top: 422px; z-index: -156644384;">
<img style="border: 0px none ; margin: 0px; padding: 0px; position:
absolute; left: -24px; top: 0px; width: 241px; height: 240px; -moz-
user-select: none;" src="someSprite"/>
</div>
the code is:
icon.sprite = { image:_url_, left: 267, top: 422 };
why do we need img inside div? why not to add possibility to set css
class where sprite picture is set? like:
icon.sprite = { cssClass: "myMarker", left: 267, top: 422 };
and generate the following html:
<div style="overflow: hidden; width: 25px; height: 40px; position:
absolute; left: 267px; top: 422px; z-index: -156644384;"
class="myMarker"></div>
in css:
.myMarker {
background-image: url(_url_);
}
we could even move height and width properties there... Is it possible
to make now (I mean can I set image in css) ? Is here any way to
override standard API implementation of sprites using?
thank you in advance,
Maxym
P.S. by the way, I use last build of Firefox (3.0.11), and current
implementation of sprites has some bugs there - sometime when I move
map markers are redrawn and sprite is loaded again... It is not all
the time, but quite frequently, and I see blinking..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---