Google Map Marker pulse animation?

后端 未结 4 1240
不思量自难忘°
不思量自难忘° 2021-01-30 15:08

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

4条回答
  •  梦如初夏
    2021-01-30 15:34

    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.

    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)
    );
    

提交回复
热议问题