JSFiddle - React, Tailwind, and code Playground

by joshmoto

HTML

<script src="http://maps.google.com/maps/api/js?sensor=false&amp;.js"></script>
<div id="map"></div>

SCSS

html,
body,
#map {
  width: 100%;
  height: 100%;
}

JavaScript

function initialize() {

  var bounds = new google.maps.LatLngBounds();

  for (var i = 0; i < permit_polygons.length; i++) {
    for (var j = 0; j < permit_polygons[i].length; j++) {
      bounds.extend(permit_polygons[i][j]);
    }
  }
  }

  map.fitBounds(bounds);
  map.setCenter(bounds.getCenter());

}

google.maps.event.addDomListener(window, 'load', initialize);