Skip to content

waissbluth/nodetiles-postgis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodetiles-PostGIS

Nodetiles-PostGIS is a data source for Nodetiles that allows you to load and render geographic data from a PostGIS database (PostGIS is Postgres with geographic additions).

Quick Start

/* Set up the libraries */
var nodetiles = require('nodetiles-core');
var PostGIS = require('nodetiles-postgis');
    
/* Create your map context */
var map = new nodetiles.Map();

/* Add some data from PostGIS! */
map.addData(new PostGIS({
  connectionString: "postgresql://localhost/database_name",
  tableName: "countries",
  geomField: "wkb_geometry",
  projection: "EPSG:900913"
}));

Copyright

Copyright (c) 2012-2013 Code for America. See LICENSE for details.

About

A PostGIS data source for Nodetiles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%