Last active
August 29, 2015 14:26
-
-
Save dbouwman/0c7498a70d9b049f206a to your computer and use it in GitHub Desktop.
FracFocus Wells in CO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"item":{"title":"New Map","snippet":"FracFocus Wells in CO","extent":[[-114.04887465605046,34.69597347177492],[-97.12992934355496,43.10857096944169]]},"itemData":{"operationalLayers":[{"url":"https://services.arcgis.com/jDGuO8tYggdCCnUJ/arcgis/rest/services/CO_Shale_Viewer/FeatureServer/1","visibility":true,"opacity":0.78,"mode":1,"id":"graphicsLayer0","minScale":0,"maxScale":0,"layerDefinition":{"drawingInfo":{"renderer":{"type":"classBreaks","field":"total_wate","minValue":1,"classBreakInfos":[{"symbol":{"color":[43,140,190,200],"size":4,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[255,255,255,255],"width":1.3,"type":"esriSLS","style":"esriSLSSolid"}},"label":0,"classMaxValue":0},{"symbol":{"color":[43,140,190,200],"size":10,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[255,255,255,255],"width":1.3,"type":"esriSLS","style":"esriSLSSolid"}},"label":"> 0 to 3888370.5","classMaxValue":3888370.5},{"symbol":{"color":[43,140,190,200],"size":16,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[255,255,255,255],"width":1.3,"type":"esriSLS","style":"esriSLSSolid"}},"label":"> 3888370.5 to 7776741","classMaxValue":7776741},{"symbol":{"color":[43,140,190,200],"size":22,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[255,255,255,255],"width":1.3,"type":"esriSLS","style":"esriSLSSolid"}},"label":"> 7776741 to 11665111.5","classMaxValue":11665111.5},{"symbol":{"color":[43,140,190,200],"size":30,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[255,255,255,255],"width":1.3,"type":"esriSLS","style":"esriSLSSolid"}},"label":"> 11665111.5 to 15553482","classMaxValue":15553482}]}}}}],"baseMap":{"baseMapLayers":[{"opacity":0.8,"visibility":false,"url":"http://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer"},{"opacity":0.5,"visibility":true,"url":"http://services.arcgisonline.com/arcgis/rest/services/Specialty/DeLorme_World_Base_Map/MapServer"}],"title":"basemap"},"version":"1.0"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css"> <style> #map { height:500px; } </style> <body> <div id="map"></div> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script src="http://js.arcgis.com/3.14/"></script> <script> require(["esri/map","esri/urlUtils","esri/arcgis/utils","esri/layers/FeatureLayer","esri/renderers/SimpleRenderer","esri/renderers/jsonUtils","dojo/domReady!"], function(Map,urlUtils,arcgisUtils,FeatureLayer,SimpleRenderer,jsonUtils) { $.getJSON("https://api.github.com/gists/0c7498a70d9b049f206a", function(data) { var webmap; for (var file in data.files ) { if ( file !== "index.html" ) { webmap = JSON.parse(data.files[file].content); } }; arcgisUtils.createMap(webmap, "map").then(function(response){ var map = response.map; map.graphicsLayerIds.forEach(function(layer) { var layer = map.getLayer(layer); layer.setMinScale(0); layer.setMaxScale(0); layer.redraw(); }); }); }); }); </script> </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment