Skip to content

Instantly share code, notes, and snippets.

@chelm
Created January 27, 2015 17:53
Show Gist options
  • Save chelm/8fee57ed0e0bd72c100c to your computer and use it in GitHub Desktop.
Save chelm/8fee57ed0e0bd72c100c to your computer and use it in GitHub Desktop.
koop cors
(function(){
d3.json("http://koop.dc.esri.com/agol/arcgis/98407d88908c46d688d117729931f2c2/12.geojson", function(error, data) {
d3.select('body').append('h1').text(data.features.length+ ' features that are awesome');
});
})();
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment