Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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><title>Minimal tQuery Page</title> | |
<script src="http://jeromeetienne.github.com/tquery/build/tquery-bundle-require.js"></script> | |
<script src="http://jeromeetienne.github.com/tquery/plugins/mirror/tquery.mirrorplane.js"></script> | |
<body><script> | |
requirejs.config({ baseUrl : "http://www.corsproxy.com/jeromeetienne.github.com/tquery/plugins/requirejs/examples/" }) | |
require([ 'tquery.skymap' | |
, 'tquery.grassground' | |
, 'tquery.minecraft' | |
, 'tquery.objectcoord' | |
], function(){ |
This file contains 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
<html> | |
<head> | |
<title>spinnin' cubes! yes! plural!</title> | |
<style>canvas { width: 100%; height: 100% }</style> | |
</head> | |
<body> | |
<script src="https://raw.github.com/mrdoob/three.js/master/build/three.js"></script> | |
<script> | |
//create basic context | |
var main_scene = new THREE.Scene(); |
This file contains 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
<html> | |
<head> | |
<title>spinnin' cubes! yes! plural!</title> | |
<style>canvas { width: 100%; height: 100% }</style> | |
</head> | |
<body> | |
<script src="https://raw.github.com/mrdoob/three.js/master/build/three.js"></script> | |
<script> | |
//create basic context | |
var main_scene = new THREE.Scene(); |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE Map[]> | |
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> | |
<Parameters> | |
<Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter> | |
<Parameter name="center">0,0,2</Parameter> | |
<Parameter name="format">png</Parameter> | |
<Parameter name="minzoom">0</Parameter> | |
<Parameter name="maxzoom">22</Parameter> |
This file contains 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
import mapnik | |
mmap = mapnik.Map(0, 0) | |
mapnik.load_map(mmap, path_to_xml) | |
mmap.width = 256 | |
mmap.height = 256 | |
mmap.zoom_to_box(mapnik.Box2d(-9079495.967826376,2817774.6107047386,-8766409.899970295, 3130860.6785608195 )) | |
img = mapnik.Image(256, 256) | |
mapnik.render(mmap, img) | |
img.save("test_output.png") |
This file contains 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
<Layer name="<data_layer>" | |
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"> | |
<StyleName>style1</StyleName> | |
<StyleName>style2</StyleName> | |
<StyleName>style3</StyleName> | |
<StyleName>style4</StyleName> | |
<Datasource> | |
<Parameter name="type"><![CDATA[postgis]]></Parameter> | |
<Parameter name="table"><![CDATA[thetablename]]></Parameter> | |
<Parameter name="key_field"><![CDATA[]]></Parameter> |
This file contains 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
options = {z:7,x:35,y:54, metatile:1, tileSize:256,format:'png'} | |
calculateMetatile = require('tilelive-mapnik/lib/render')['calculateMetatile'] | |
meta = calculateMetatile({z:7,x:35,y:54, metatile:1, tileSize:256,format:'png'}) | |
var mapnik = require('mapnik') | |
options.headers = { 'Content-Type': 'image/png' }; | |
var image = new mapnik.Image(meta.width, meta.height); | |
var map = new mapnik.Map(256,256); | |
map.bufferSize=0 | |
map.fromString(path_to_Xml, {strict: false, base: path_to_base}, function(err,map) {console.log('done')}) | |
map.loadSync(<path_to_xml>) |
This file contains 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
<html> | |
<head> | |
<style type="text/css"> | |
#over{ | |
position: absolute; | |
left: 20; | |
} | |
</style> | |
<script type="text/javascript"> |
This file contains 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
<html> | |
<head> | |
<style type="text/css"> | |
#over{ | |
position: absolute; | |
left: 20; | |
} | |
</style> | |
<script type="text/javascript"> |
NewerOlder