How to set up a quick geocoding system on google spreadsheets.
- Create a new spreadsheet
- Open the Scripts editor and paste the script attached
- Use on your spreadsheet this new formula
=searchMapzen(place_cell,mapzen_api_key)
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app="http://www.google.de" |
var multiCrowbar = (function() { | |
/* | |
* SVG Export | |
* converts html labels to svg text nodes | |
* will produce incorrect results when used with multi-line html texts | |
* | |
* Author: Gregor Aisch | |
* based on https://github.com/NYTimes/svg-crowbar/blob/gh-pages/svg-crowbar-2.js | |
*/ |
var geojson2svg = require('geojson2svg'); | |
var turf = require('turf'); | |
var fs = require('fs') | |
var polys = require('polygons.json') // a featurecollection of geojson polygons with a name property | |
polys.features.forEach(function(poly){ | |
var extent = turf.bbox(poly) | |
var options = { | |
viewportSize: {width: 200, height: 100}, | |
mapExtent: {left: extent[0], bottom: extent[1], right: extent[2], top: extent[3]}, |
I recently made my first map with MapBox's new WebGL+JavaScript API. There aren't many examples of how to do this yet, even on MapBox's API page, so I'll document my own experience here.
My map is made of several textures taken from Van Gogh paintings. The long-term goal is to allow a user to select which artworks they want to take textures from, but for now there is just one setting.
var geojson = {}; | |
geojson['type'] = 'FeatureCollection'; | |
geojson['features'] = []; | |
for (var k in data) { | |
var newFeature = { | |
"type": "Feature", | |
"geometry": { | |
"type": "Point", | |
"coordinates": [parseFloat(data[k].lng), parseFloat(data[k].lon)] |