JSFiddle - React, Tailwind, and code Playground

by Alex Azuero

HTML

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" />
    <title>BlendRenderer: Los Angeles housing status</title>
    <link rel="stylesheet" href="https://js.arcgis.com/3.16/dijit/themes/claro/claro.css">
    <link rel="stylesheet" href="https://js.arcgis.com/3.16/esri/css/esri.css">
    <style>
      html, body, #map {
        height: 100%;
        margin: 0;
      }

      #meta {
        position: absolute;
        left: 20px;
        bottom: 20px;
        width: 20em;
        height: 16em;
        z-index: 40;
        background: #ffffff;
        color: #777777;
        padding: 5px;
        border: 2px solid #666666;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        font-family: arial;
        font-size: 0.9em;
      }

      #meta h3 {
        color: #666666;
        font-size: 1.1em;
        padding: 0px;
        margin: 0px;
        display: inline-block;
      }
    </style>
    <script src="https://js.arcgis.com/3.16/"></script>
    <script>
      require([
        "esri/Color", "esri/dijit/PopupTemplate", "esri/layers/FeatureLayer", "esri/map", "esri/renderers/BlendRenderer",
        "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "dojo/domReady!"
      ], function (Color, PopupTemplate, FeatureLayer, Map, BlendRenderer, SimpleFillSymbol, SimpleLineSymbol){

        map = new Map("map", {
          basemap: "topo", //"topo"
          center: [-118.40, 34.06],
          zoom: 12
        });

        //Set the blendRenderer's parameters
        var blendRendererParams = {
          //blendMode:"overlay" //By default, it uses "source-over", uncomment to display different mode
          //See: http://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
          symbol: new SimpleFillSymbol().setOutline(new...