JSFiddle - React, Tailwind, and code Playground
by ojdavey
HTML
<script src="https://maps.googleapis.com/maps/api/js"></script>
<div id='map'></div>
CSS
#map {
height: 500px;
margin: 0 auto;
width: 1024px;
}
JavaScript
var map;
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(-38.255338, 144.30834),
zoom: 11,
mapTypeId: google.maps.MapTypeId.ROADMAP,
draggable: true,
zoomControl: true,
scrollwheel: false,
disableDefaultUI: true,
};
map = new google.maps.Map(document.getElementById("map"), mapOptions);
var location = new google.maps.LatLng(-38.174379, 144.237155);
var icon1 =...