JSFiddle - React, Tailwind, and code Playground
by ipan ridha
HTML
<!DOCTYPE html>
<html>
<head>
<title> membuat animasi pada marker </title>
</head>
<body>
<div id="map" style="width:100%;height:500px"></div>
<script>
function myMap() {
var mapCanvas = document.getElementById("map");
var myCenter = new google.maps.LatLng(5.1718862,97.0375951);
var mapOptions = {center: myCenter, zoom: 9};
var map = new google.maps.Map(mapCanvas,mapOptions);
var marker = new google.maps.Marker({
position: myCenter,
animation: google.maps.Animation.BOUNCE
});
marker.setMap(map);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBs4whEtOsDLUbn-Stqx0qvQzpT_QoekNo&callback=myMap"></script>
</body>
</html>