Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixup cruft in examples

  • Loading branch information...
commit efd9ec20d2cb02dc4ad339bdd42e4b84220d3d26 1 parent 3f60fad
@springmeyer springmeyer authored
Showing with 7 additions and 6 deletions.
  1. +1 −1  examples/simple/render.js
  2. +6 −5 examples/simple/simple_express.js
View
2  examples/simple/render.js
@@ -26,7 +26,7 @@ var map = new mapnik.Map(600, 400);
map.loadSync(stylesheet);
map.zoomAll();
-map.renderFileSync(image, {scale:20});
+map.renderFileSync(image);
console.log('rendered map to ' + image);
child_process.exec('open ' + image);
View
11 examples/simple/simple_express.js
@@ -4,11 +4,12 @@
//
// expected output: http://goo.gl/cyGwo
-var mapnik = require('mapnik'),
- express = require('express'),
- path = require('path'),
- app = express.createServer(),
- port = 8000;
+var mapnik = require('mapnik');
+var express = require('express');
+var path = require('path');
+
+var app = express();
+var port = 8000;
app.get('/', function(req, res) {
var map = new mapnik.Map(256, 256);
Please sign in to comment.
Something went wrong with that request. Please try again.