有人知道如何在google-maps-react库或任何类型的google-maps库中为React添加动画吗?
谢谢,
发布于 2018-04-19 21:26:14
这对我来说很有效:
<Marker defaultAnimation={google.maps.Animation.DROP} />发布于 2017-01-27 03:11:02
它在文档里。
https://developers.google.com/maps/documentation/javascript/examples/marker-animations。
marker = new google.maps.Marker({
map: map,
draggable: true,
animation: google.maps.Animation.DROP,
position: {lat: 59.327, lng: 18.067}
});
marker.setAnimation(google.maps.Animation.BOUNCE);https://stackoverflow.com/questions/41881071
复制相似问题