JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://maps.google.com/maps/api/js?sensor=false&amp;.js"></script>
<div id="map_canvas" style="height:400px; width:400px"></div>

JavaScript

var map;
var polyline;
var markers = [
    new google.maps.LatLng(17.43495,78.50898333),
    new google.maps.LatLng(17.43495,78.50898333),
    new google.maps.LatLng(17.43938333,78.52168333),
    new google.maps.LatLng(17.43708333,78.52925),
    new google.maps.LatLng(17.4366,78.53336667)
    ];

function init() {
    var moptions = {
        center: new google.maps.LatLng(17.43938333,78.52168333),
        zoom: 14,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }

    map = new google.maps.Map(document.getElementById("map_canvas"), moptions);

    var iconsetngs = {
        path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW
    };
    var polylineoptns = {
        path: markers,
        strokeOpacity: 0.8,
        strokeWeight: 3,
        map: map,
        icons: [{
            icon: iconsetngs,
            offset: '100%'}]
    };
    polyline = new google.maps.Polyline(polylineoptns);

}
window.onload = init;