Allan Laframboise
Juan Carlos Franco
Do more with less CSS!
<!-- 1. Main map container -->
<div id="viewDiv" class="esri-view esri-view-height-large esri-view-width-large esri-view-orientation-landscape...">
<div class="esri-view-root" style="width: 1186px; height: 1124px;">
<!-- 2. Drawing surface -->
<div class="esri-view-surface" style="user-select: none; width: 1186px; height: 1124px; touch-action: none; display: block; opacity: 1;" tabindex="0">
<canvas class="esri-display-object" width="1186" height="1124" style="width: 1186px; height: 1124px; display: block; opacity: 1;"></canvas>
...
<!-- 3. UI Elements -->
<div class="esri-ui" style="top: 0px; left: 0px; right: 0px; bottom: 0px;">
<!-- 3a. Manual UI -->
<div class="esri-ui-inner-container esri-ui-manual-container">
<div class="esri-component esri-attribution esri-widget">
...
<!-- 3b. Default UI -->
<div class="esri-ui-inner-container esri-ui-corner-container" style="top: 15px; left: 15px; right: 15px; bottom: 30px;">
<div class="esri-ui-top-left esri-ui-corner"><div class="esri-component esri-zoom esri-widget">
...
// Default view.breakpoints sizes
xsmall: 0-544 (esri-view-width-xsmall)
small: 545-768 (esri-view-width-small)
medium: 769-992 (esri-view-width-medium)
large: 993-1200 (esri-view-width-large)
xlarge: 1201+ (esri-view-width-xlarge)
<!-- 1. Main map container -->
<div id="viewDiv" class="esri-view esri-view-height-large esri-view-width-large esri-view-orientation-landscape...">
<div class="esri-view-root" style="width: 1186px; height: 1124px;">
<!-- 2. Drawing surface -->
<div class="esri-view-surface" style="user-select: none; width: 1186px; height: 1124px; touch-action: none; display: block; opacity: 1;" tabindex="0">
<canvas class="esri-display-object" width="1186" height="1124" style="width: 1186px; height: 1124px; display: block; opacity: 1;"></canvas>
...
<!-- 3. UI Elements -->
<div class="esri-ui" style="top: 0px; left: 0px; right: 0px; bottom: 0px;">
<!-- 3a. Manual UI -->
<div class="esri-ui-inner-container esri-ui-manual-container">
<div class="esri-component esri-attribution esri-widget">
...
<!-- 3b. Default UI -->
<div class="esri-ui-inner-container esri-ui-corner-container" style="top: 15px; left: 15px; right: 15px; bottom: 30px;">
<div class="esri-ui-top-left esri-ui-corner"><div class="esri-component esri-zoom esri-widget">
...
slides.com/alaframboise