JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//maps.googleapis.com/maps/api/js?v=3.exp"></script>
<div id="map" style="width: 500px; height: 500px;" />
JavaScript
var map = new google.maps.Map(
document.getElementById('map'),
{zoom: 18, center: new google.maps.LatLng(59.4372, 24.7453), mapTypeId: google.maps.MapTypeId.TERRAIN});
var marker = new google.maps.Marker({map: map, position: new google.maps.LatLng(59.4372, 24.7453)});
var polyline = new google.maps.Polyline({map: map, path: [
new google.maps.LatLng(59.4372, 24.7453),
new google.maps.LatLng(59.4572, 24.7553)
], strokeColor: '#ff0000', strokeWeight: 5});