JSFiddle - React, Tailwind, and code Playground

by AliReza Moazami

HTML

<script src="https://maps.googleapis.com/maps/api/js?v=3"></script>
<div id="myMap"></div>

JavaScript

var myLocation = new google.maps.LatLng(35.701, 51.391), mapOptions = {
		zoom: 12,
		center: myLocation,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	}, map = new google.maps.Map(document.getElementById("myMap"), mapOptions), infowindow = new google.maps.InfoWindow({
		content: '<div style="direction:rtl;color:red;text-align:right;font:bold 17px Tahoma;">انقلاب<br>تهران</div>'
	}), marker = new google.maps.Marker({
		position: myLocation,
		map: map
	});
infowindow.open(map, marker);