Adapting the earlier OSM vector tiles example to show how to render multiple layers.
This file contains hidden or 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
| license: gpl-3.0 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import os | |
| import xively | |
| import subprocess | |
| import time | |
| import datetime | |
| import requests | |
| FEED_ID = "1910056643" |
This file contains hidden or 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
| var http = require('http'); | |
| var fs = require('fs'); | |
| var url = require('url'); | |
| var fileLocation = '/sys/bus/w1/devices/28-000003b74282/w1_slave'; | |
| http.createServer(function (req, res) { | |
| var request_url = url.parse(req.url).pathname; | |
| if (request_url == '/temperature.json') { | |
| fs.readFile(fileLocation, 'utf8', function(err, data) { |
This example demonstrates how to create a custom Cartesian projection by implementing a geometry stream on top of two linear scales; the geometry stream is then used instead of a geographic projection, which are intended for spherical coordinates.
This file contains hidden or 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
| //A Depth-Tree-ish Canvas-Splitter (w/o real recursion) | |
| //for Processing 2 by Dan Anthony | |
| PImage img; // Reference Image | |
| PImage omg; // Display Image | |
| int level[]; //Recursion Depth Marker - SPlit/count | |
| float x; | |
| float y; | |
| float px; | |
| float py; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| body { | |
| font: 10px sans-serif; | |
| } | |
| .axis path, |