Google Map Marker脉冲动画? [英] Google Map Marker pulse animation?

查看:217
本文介绍了Google Map Marker脉冲动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道有什么方法可以使Google Map Marker脉动吗?例如此处: http://plebeosaur.us/etc/map/

I wonder is there any way to make Google Map Marker to pulse? Like here: http://plebeosaur.us/etc/map/

推荐答案

检出代码后,我注意到您提供的演示中使用了CSS pulsate。看到其他示例很高兴。

After checking out the code I noticed that CSS pulsate is used on the demo you provided. It would be nice to see other examples of this.

他使用静态图像作为中心。

He uses a static image for the center.

这是可以使用的代码... http://jsfiddle.net/86Ejf/945/

Here is the code to play around with... http://jsfiddle.net/86Ejf/945/

var image = new google.maps.MarkerImage(
    'bluedot_retina.png',
    null, // size
    null, // origin
    new google.maps.Point( 8, 8 ), // anchor (move to center of marker)
    new google.maps.Size( 17, 17 ) // scaled size (required for Retina display icon)
);

这篇关于Google Map Marker脉冲动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆