{"repo":"vasturiano/three-slippy-map-globe","free":true,"listed":false,"github":"https://github.com/vasturiano/three-slippy-map-globe","clone":"git clone https://github.com/vasturiano/three-slippy-map-globe.git","description":"Tiled maps on a globe as a ThreeJS reusable 3D object","language":"JavaScript","stars":18,"topics":["data-visualization","geography","gis","globe","maps","slippy-map","threejs","tiled","tilemap","webgl"],"license":"MIT","category":"analytics","readme_excerpt":"ThreeJS Slippy Map Tiled Globe ============================== [![NPM package][npm-img]][npm-url] [![Build Size][build-size-img]][build-size-url] [![NPM Downloads][npm-downloads-img]][npm-downloads-url] A ThreeJS mesh to render tiled raster images onto a sphere using slippy map mechanics, with automatic detection of zoom level and tiles in view based on camera aim and proximity. Check out the example (source). Quick start or using a script tag then and on camera position changes: API reference Initialisation Config options Description Default ------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- :-------: tileUrl : fn(x, y, l) The callback function that defines the URL of the tile engine, invoked for each single tile that needs fetching. The slippy map coordinates x , y and l (zoom level) are passed as arguments and the function is expected to return a URL string. - minZoom : int The minimum zoom level of the tiles. 0 maxZoom : int The maximum zoom level of the tiles. 17 mercatorProjection : boolean Whether the tile images use a mercator projection. This is usually true for slippy maps tile sets. true Attributes Attribute Description Default ------------------------------------ -----------------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/vasturiano","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vasturiano/three-slippy-map-globe/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}