2

Is it possible to embed a jQuery animated SPAN element into a Google Map at a specific latitude and longitude? (Just like a map marker.)

Currently, I am using a jQuery plugin to animate a series of transparent PNG frames and then populate a span tag with those PNGs. (See the animation plugin here: http://blog.shynet.nl/post/2010/08/28/Alternative-to-animated-GIFs-AnimateImages-jQuery-Plugin.aspx)

My original idea was to use CSS to position the SPAN object on top of the map where I wanted it, but this solution will not work when the user drags the map. How can I embed this object into a map in a fashion similar to a map marker?

My source code can be found on PasteBin here: http://pastebin.com/MY0SfqXE

An example would be much appreciated!

4

1 回答 1

0

是的,您可以嵌入。有一些方法可以将 latlong 映射到相对于地图容器的像素值。为此,您必须创建自定义叠加层。看到这个线程

于 2012-10-18T20:39:04.757 回答