JSFiddle - React, Tailwind, and code Playground

by Lawrence Ross

HTML

<script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,places&amp;ext=.js"></script>
<div id="map_canvas"></div>

CSS

html, body, #map_canvas {
    height: 256px;
    width: 256px;
    margin: 0px;
    padding: 0px
}

JavaScript

var geocoder;
var map;

function initialize() {
    var map = new google.maps.Map(
    document.getElementById("map_canvas"), {
        center: new google.maps.LatLng(37.4419, -122.1419),
        zoom: 1,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    });
var dor24 = new google.maps.LatLng(52.519325,13.392709);
map.setCenter( dor24);
// map.fitBounds( latlngbounds );
}
google.maps.event.addDomListener(window, "load", initialize);