Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #292 from jgravois/lose-examples/lib
Browse files Browse the repository at this point in the history
point folks to unpkg.com for just about everything
  • Loading branch information
jgravois committed Jan 27, 2017
2 parents c32016b + c1a65a8 commit 9b25de0
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 2,934 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -24,7 +24,7 @@ Check out the getting [started guide](http://terraformer.io/getting-started/) wh

### Node.js

Install the core module with NPM and then require it in your Node program.
Install the core module with npm and then require it in your Node program.

```
$ npm install terraformer
Expand Down Expand Up @@ -53,9 +53,8 @@ To use the Terraformer library, include a reference to it using a `<script>` tag
To utilize supporting packages, you must load their source as well.

```html
<script src="terraformer-arcgis-parser.min.js"></script> <!-- https://github.com/Esri/terraformer-arcgis-parser -->
<script src="terraformer-wkt-parser.min.js"></script> <!-- https://github.com/Esri/terraformer-wkt-parser -->
<script src="terraformer-geostore.min.js"></script> <!-- https://github.com/Esri/terraformer-geostore -->
<script src="https://unpkg.com/terraformer-arcgis-parser@1.0.5"></script>
<script src="https://unpkg.com/terraformer-wkt-parser@1.1.2"></script>
```

## Documentation
Expand Down Expand Up @@ -106,8 +105,8 @@ var boundingBox = polygon.bbox(); // returns the geojson bounding box for this o

## Resources

* [Terraformer Website](http://terraformer.io)
* [twitter@EsriPDX](http://twitter.com/esripdx)
* [Documentation Site](http://terraformer.io)
* [@EsriPDX](http://twitter.com/esripdx)

## Building the documentation

Expand Down
4 changes: 2 additions & 2 deletions docs/geostore.html.md
Expand Up @@ -56,8 +56,8 @@ The GeoStore manages data that is made available as either a `Feature` or a `Fea
Using the GeoStore in the browser requires including both Terraformer and the GeoStore:

```html
<script src="terraformer.min.js"></script>
<script src="terraformer-geostore.min.js"></script>
<script src="https://unpkg.com/terraformer@1.0.7"></script>
<script src="https://unpkg.com/terraformer-geostore@1.0.4/browser/terraformer-geostore.js"></script>
```

Once those are included, you can create a new `Store`. You will need to include both a Data Store and a Spatial Index to instantiate a GeoStore.
Expand Down
5 changes: 2 additions & 3 deletions docs/getting-started.html.md
Expand Up @@ -50,9 +50,8 @@ To use the Terraformer library, include a reference to it using a `<script>` tag
To utilize supporting packages, you must load their source as well.

```html
<script src="terraformer-arcgis-parser.min.js"></script> <!-- https://github.com/Esri/terraformer-arcgis-parser -->
<script src="terraformer-wkt-parser.min.js"></script> <!-- https://github.com/Esri/terraformer-wkt-parser -->
<script src="terraformer-geostore.min.js"></script> <!-- https://github.com/Esri/terraformer-geostore -->
<script src="https://unpkg.com/terraformer-arcgis-parser@1.0.5"></script>
<script src="https://unpkg.com/terraformer-wkt-parser@1.1.2"></script>
```

## Working with Primitives
Expand Down
16 changes: 7 additions & 9 deletions docs/install.html.md
Expand Up @@ -16,17 +16,16 @@ We make Terraformer available via a number of distribution methods including NPM
**Bower** `bower install terraformer`

<a href="https://github.com/Esri/Terraformer/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer/1.0.6/terraformer.min.js" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer@1.0.7" class="button button-light">CDN</a>

## ArcGIS Parser

**Node** `npm install terraformer-arcgis-parser`

**Bower** `bower install terraformer-arcgis-parser`


<a href="https://github.com/Esri/terraformer-arcgis-parser/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer-arcgis-parser/1.0.5/terraformer-arcgis-parser.min.js" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer-arcgis-parser@1.0.5" class="button button-light">CDN</a>


## WKT Parser
Expand All @@ -36,7 +35,7 @@ We make Terraformer available via a number of distribution methods including NPM
**Bower** `bower install terraformer-wkt-parser`

<a href="https://github.com/Esri/terraformer-wkt-parser/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer-wkt-parser/1.1.1/terraformer-wkt-parser.min.js" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer-wkt-parser@1.1.2" class="button button-light">CDN</a>

## GeoStore

Expand All @@ -45,7 +44,7 @@ We make Terraformer available via a number of distribution methods including NPM
**Bower** `bower install terraformer-geostore`

<a href="https://github.com/Esri/terraformer-geostore/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer-geostore/1.0.2/terraformer-geostore.min.js" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer-geostore@1.0.4/browser/terraformer-geostore.js" class="button button-light">CDN</a>

### RTree Index

Expand All @@ -54,8 +53,7 @@ We make Terraformer available via a number of distribution methods including NPM
**Bower** `bower install terraformer-rtree`

<a href="https://github.com/Esri/terraformer-geostore-rtree/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer-geostore-rtree/1.0.0/terraformer-geostore-rtree.min.js
" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer-rtree@1.0.0" class="button button-light">CDN</a>

### Memory Store

Expand All @@ -64,7 +62,7 @@ We make Terraformer available via a number of distribution methods including NPM
**Bower** `bower install terraformer-geostore-memory`

<a href="https://github.com/Esri/terraformer-geostore-memory/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer-geostore-memory/1.0.0/terraformer-geostore-memory.min.js" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer-geostore-memory@1.0.0" class="button button-light">CDN</a>

### LocalStorage Store

Expand All @@ -73,4 +71,4 @@ We make Terraformer available via a number of distribution methods including NPM
**Bower** `bower install terraformer-geostore-localstorage`

<a href="https://github.com/Esri/terraformer-geostore-localstorage/releases" class="button button-light">Download</a>
<a href="http://cdn-geoweb.s3.amazonaws.com/terraformer-geostore-localstorage/1.0.0/terraformer-geostore-localstorage.min.js" class="button button-light">Cloudfront CDN</a>
<a href="https://unpkg.com/terraformer-geostore-localstorage@1.0.0" class="button button-light">CDN</a>
21 changes: 11 additions & 10 deletions examples/browser/arcgis-geojson/index.html
Expand Up @@ -3,16 +3,17 @@
<head>
<meta charset=utf-8 />
<title>US Counties</title>

<script src="../../../terraformer.js" type="text/javascript"></script>
<script src="../../lib/terraformer-geostore.js" type="text/javascript"></script>
<script src="../../lib/terraformer-geostore-memory.js" type="text/javascript"></script>
<script src="../../lib/terraformer-geostore-rtree.js" type="text/javascript"></script>
<script src="../../lib/terraformer-arcgis-parser.js" type="text/javascript"></script>

<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" />
<script src="http://js.arcgis.com/3.10/" type="text/javascript"></script>
<!-- load supporting JavaScript and GeoJson for US Counties-->
<script src="https://unpkg.com/terraformer@1.0.7"></script>
<script src="https://unpkg.com/terraformer-geostore@1.0.4/browser/terraformer-geostore.js" type="text/javascript"></script>
<script src="https://unpkg.com/terraformer-geostore-memory@1.0.0" type="text/javascript"></script>
<script src="https://unpkg.com/terraformer-rtree@1.0.0" type="text/javascript"></script>
<script src="https://unpkg.com/terraformer-arcgis-parser@1.0.5"></script>

<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css" />
<script src="http://js.arcgis.com/3.19/" type="text/javascript"></script>

<!-- load supporting JavaScript and US Counties GeoJSON -->
<script src="viewer.js"></script>
<script src="counties.js"></script>
<style>
Expand All @@ -39,7 +40,7 @@
</head>
<body>
<div id="map"></div>
<button id="submit">Use RTree index to find my county</button>
<button id="submit">Use RTree index to determine county location</button>
<div>
<span id="whereami"></span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/browser/arcgis-geojson/viewer.js
Expand Up @@ -60,7 +60,7 @@ require([
coordinates: [ lng, lat ]
},function(err,results){
if (results.length) {
query("#whereami")[0].innerHTML = "You are at " + lng.toFixed(5) + " longitude, " + lat.toFixed(5) + " latitude, in " + results[0].properties.name + " county.";
query("#whereami")[0].innerHTML = "Your location is: " + lng.toFixed(5) + ", " + lat.toFixed(5) + ", in " + results[0].properties.name + " county.";

// add highlighted county graphic to map, center and zoom
var arcgis = Terraformer.ArcGIS.convert(results[0]);
Expand All @@ -75,7 +75,7 @@ require([
//zoom in the map to the extent of the search result
map.setExtent(geometry.getExtent(), true);
} else {
query("#whereami")[0].innerHTML = "We couldn't find where you were. Or you aren't in a country right now.";
query("#whereami")[0].innerHTML = "We couldn't find you. Or you aren't in a US county right now.";
}
});
});
Expand Down
14 changes: 7 additions & 7 deletions examples/browser/arcgis-interactive-loader/index.html
Expand Up @@ -3,14 +3,14 @@
<head>
<meta charset=utf-8 />
<title>ArcGIS Data Loader</title>

<script src="../../../terraformer.js" type="text/javascript"></script>
<script src="../../lib/terraformer-wkt-parser.js" type="text/javascript"></script>
<script src="../../lib/terraformer-arcgis-parser.js" type="text/javascript"></script>

<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" />
<script src="http://js.arcgis.com/3.10/" type="text/javascript"></script>

<script src="https://unpkg.com/terraformer@1.0.7"></script>
<script src="https://unpkg.com/terraformer-wkt-parser@1.1.2"></script>
<script src="https://unpkg.com/terraformer-arcgis-parser@1.0.5"></script>

<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css" />
<script src="http://js.arcgis.com/3.19/" type="text/javascript"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
Expand Down
12 changes: 6 additions & 6 deletions examples/browser/arcgis-wkt/index.html
Expand Up @@ -3,12 +3,12 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>ArcGIS Load WKT</title>
<script src="../../../terraformer.js" type="text/javascript"></script>
<script src="../../lib/terraformer-wkt-parser.js" type="text/javascript"></script>
<script src="../../lib/terraformer-arcgis-parser.js" type="text/javascript"></script>
<script src="https://unpkg.com/terraformer@1.0.7"></script>
<script src="https://unpkg.com/terraformer-wkt-parser@1.1.2"></script>
<script src="https://unpkg.com/terraformer-arcgis-parser@1.0.5"></script>

<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" />
<script src="http://js.arcgis.com/3.10/" type="text/javascript"></script>
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css" />
<script src="http://js.arcgis.com/3.19/" type="text/javascript"></script>
<script src="viewer.js"></script>
<style>
html, body {
Expand All @@ -31,4 +31,4 @@
<div id="map"></div>
<button id="submit">Load WKT into Map</button>
</body>
</html>
</html>
49 changes: 27 additions & 22 deletions examples/browser/googlemaps-wkt/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions examples/browser/index.html
Expand Up @@ -45,15 +45,15 @@
<a href="https://github.com/esri/Terraformer"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div>
<h1 class="title">Terraformer</h1>
<p>Here's a few client-side examples that illustrate how to work with geometries and geodata using different <a href="http://github.com/esri/Terraformer">Terraformer</a> modules.</p>
<p>Here's a few client-side examples that illustrate how to work with geometries and geodata using different <a href="http://github.com/Esri/Terraformer">Terraformer</a> modules.</p>
</br>
<h3>Terraformer Primatives and Well Know Text (WKT)</h3>
<h3>Terraformer Primitives and Well Known Text (WKT)</h3>
<ul>
<li><a href="arcgis-wkt/index.html">ArcGIS WKT Viewer</a></li>
<li><a href="leaflet-wkt/index.html">Leaflet WKT Viewer</a></li>
<li><a href="googlemaps-wkt/index.html">Google WKT Viewer</a></li>
</ul>
<h3>Terraformer Primatives, WKT & ArcGIS Parser</h3>
<h3>Terraformer Primitives, WKT &amp; ArcGIS Parser</h3>
<ul>
<li><a href="arcgis-interactive-loader/index.html">ArcGIS Interactive Data Loader</a></li>
</ul>
Expand All @@ -67,4 +67,4 @@ <h3>Terraformer GeoJSON, RTree and Geostore</h3>
</br>
</div>
</body>
</html>
</html>
10 changes: 6 additions & 4 deletions examples/browser/leaflet-wkt/index.html
Expand Up @@ -3,7 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Leaflet Load WKT</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css">
<style>
html, body, #map {
margin: 0;
Expand All @@ -12,6 +12,7 @@

#submit {
position: absolute;
z-index: 400;
right: 20px;
top: 20px;
}
Expand All @@ -20,9 +21,10 @@
<body>
<div id="map"></div>
<button id="submit" onclick="loadWkt();">Load WKT into Map</button>
<script src="../../../terraformer.js" type="text/javascript"></script>
<script src="../../lib/terraformer-wkt-parser.js" type="text/javascript"></script>
<script data-main="main" src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<script src="https://unpkg.com/terraformer@1.0.7"></script>
<script src="https://unpkg.com/terraformer-wkt-parser@1.1.2"></script>

<script src="https://unpkg.com/leaflet@1.0.2"></script>
<script>
var map = new L.Map('map');

Expand Down

0 comments on commit 9b25de0

Please sign in to comment.