Skip to content

Instantly share code, notes, and snippets.

View handygeospatial's full-sized avatar

Hidenori FUJIMURA handygeospatial

View GitHub Profile
javascript:(function(){map._olMap.addLayer(new%20OpenLayers.Layer.OSM('%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F','http://cyberjapandata.gsi.go.jp/xyz/20131017dol/${z}/${x}/${y}.png'));})();
@ZJONSSON
ZJONSSON / README.md
Last active April 28, 2016 07:18
D3 GeoJSON in Leaflet

UPDATE: The Vector Tiles are not being served at this time by Openstreetmap. Try later or a different provider (example) Services seem to have resumed

A simple test of extending the L.TileLayer to fetch geoJSON tiles from openstreetmap and render them with d3. This is probably not the most efficient way to do this, as we accept empty image tags (from the standard TileLayer) and use them as containers for the data/requests.

@tmcw
tmcw / xyz_vs_tms.md
Last active April 3, 2024 06:18
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.