Skip to content

Instantly share code, notes, and snippets.

@crstn crstn/index.html
Created Aug 20, 2015

What would you like to do?
<title>Leaflet template</title>
<link rel="stylesheet" href=""/>
<script src=""></script>
<script src=""></script>
<script src=""></script>
html, body, #map {
height: 100%;
// When the webpage is ready (loaded)
$(document).ready(function() {
var map = new L.Map('map',
{ center:[40.75, -73.95],
zoom: 12
L.tileLayer('http://{s}{z}/{x}/{y}.png?{foo}', {foo: 'bar'}).addTo(map);
var geojsonLayer = new L.GeoJSON.AJAX(" distinct play.cartodb_id, play.the_geom, play.accessible FROM play, nyc_streets WHERE nyc_streets.aadt > 100000 and ST_DISTANCE (play.the_geom::geography, nyc_streets.the_geom::geography) < 50");
<div id="map"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.