JSFiddle - React, Tailwind, and code Playground

by kenbuja

HTML

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <!--The viewport meta tag is used to improve the presentation and behavior of the samples 
      on iOS devices-->
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
    <title>Non graphic info window</title>
    
    <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css">
    <style>
      html, body, #map{
        height: 100%;
        margin: 0;
        padding: 0;
      }
    </style>
    
    <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/"></script>
    <script>
      require([
          "esri/map",
          "dojo/_base/connect",
          "dojo/domReady!"
        ], function(
          Map, connect
        ){
          var map = new Map("map", {
            basemap: "satellite",
            center: [-82, 26],
            zoom: 7
          });  

          map.on("load", function(){
            map.infoWindow.resize(250,100);
          });

          map.on("click", addPoint);
          
          var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/SEFCRI/MapServer");
          map.addLayers([layer]);
          
        //layer.on("update-end", function (error) {
          connect.connect(layer, "onUpdateEnd", function (error) {
            if (error) {
              alert("Update complete with error: " + error);
            }
          });
          
          function addPoint(evt) {
            map.infoWindow.setTitle("Coordinates");
            //Need to convert the coordinates from the map's spatial reference (web mercator) to geographic to display lat/lon values
      
            var latitude = evt.mapPoint.getLatitude();
            var longitude = evt.mapPoint.getLongitude();
     
            map.infoWindow.setContent("lat/lon : " +latitude.toFixed(2) + ", " + longitude.toFixed(2)...