-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathindex.html
70 lines (63 loc) · 3.78 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Leaflet Vector Layers - Jason Sanford</title>
<meta name="description" content="Display vector data from ArcGIS Server, GeoIQ, Geocommons, Arc2Earth, CartoDB and others in a Leaflet map">
<meta name="author" content="Jason Sanford">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="../docs-demo/css/bootstrap.css" rel="stylesheet">
<link href="../docs-demo/css/prettify.css" rel="stylesheet">
<link href="../docs-demo/css/docs.css" rel="stylesheet">
<link href="../docs-demo/css/demo.css" rel="stylesheet">
</head>
<body>
<a href="https://github.com/JasonSanford/leaflet-vector-layers"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 10001;" src="../docs-demo/img/github-fork.png" alt="Fork me on GitHub"></a>
<div class="topbar" data-dropdown="dropdown">
<div class="topbar-inner">
<div class="container-fluid">
<a class="brand" href="../">Leaflet Vector Layers</a>
<ul class="nav">
<li><a href="../">Home</a></li>
<li><a href="../documentation">Documentation</a></li>
<li class="dropdown">
<a href="demos" class="dropdown-toggle">Demos</a>
<ul class="dropdown-menu">
<li><a href="../demos/arcgis-server">ArcGIS Server</a></li>
<li><a href="../demos/arc2earth">Arc2Earth</a></li>
<li><a href="../demos/cartodb">CartoDB</a></li>
<li><a href="../demos/geoiq">GeoIQ</a></li>
<li><a href="../demos/postgis-restful-web-service-framework">PostGIS RESTful Web Service Framework</a></li>
<li><a href="../demos/gis-cloud">GIS Cloud</a></li>
<li><a href="../demos/gitspatial">GitSpatial</a></li>
</ul>
</li>
<li class="active"><a href="./">Tips + Tricks</a></li>
<li><a href="../download">Download</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="content">
<h1>Tips & Tricks</h1>
<h2>CartoDB</h2>
<h3>Simplify</h3>
<p class="docs">Use PostGIS' <code>simplify</code> function to simplify complex geometries in your database. This is especially helpful at lower zoom levels where high numbers of vertices aren't necessary.</p>
<h3>the_geom</h3>
<p class="docs">When performing spatial functions like the simplify example above, be sure that the geometry returned is always in a field named <code>the_geom</code>. This is the field name that is necessary to create GeoJSON (what Leaflet Vector Layers uses for geometry).</p>
<footer>
<p>© Jason Sanford - geojason.info 2013</p>
</footer>
</div>
</div>
<script src="../docs-demo/js/prettify.js" type="text/javascript"></script>
<script src="../docs-demo/js/jquery-1.8.1.min.js" type="text/javascript"></script>
<script src="../docs-demo/js/docs-demos.js" type="text/javascript"></script>
<script src="../docs-demo/js/bootstrap-dropdown.js" type="text/javascript"></script>
</body>
</html>