Last active
May 21, 2017 19:02
-
-
Save ungoldman/1f308b5dffe2c9541f96 to your computer and use it in GitHub Desktop.
terraformer example
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
<script src="https://rawgit.com/Esri/Terraformer/master/terraformer.js"></script> | |
<script src="https://rawgit.com/Esri/terraformer-arcgis-parser/master/terraformer-arcgis-parser.js"></script> | |
<!-- CDN or locally hosted is ideal but I'm using raw github so that we get error reporting within the unminified source | |
<script src="http://cdn-geoweb.s3.amazonaws.com/terraformer/1.0.4/terraformer.min.js"></script> | |
<script src="http://cdn-geoweb.s3.amazonaws.com/terraformer-arcgis-parser/1.0.4/terraformer-arcgis-parser.min.js"></script> | |
--> | |
<script> | |
var input = { | |
"x": -66.796875, | |
"y": 20.0390625, | |
"spatialReference": { | |
"wkid": 4326 | |
} | |
}; | |
var output = Terraformer.ArcGIS.parse(input); | |
document.documentElement.innerHTML = JSON.stringify(output, null, 2); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment