global-mercator
Advanced tools
Comparing version 0.1.5 to 0.1.6
10
index.js
@@ -65,2 +65,4 @@ "use strict"; | ||
* @returns {Tile} | ||
* latLngToTile({lat: 45, lng: 90, zoom: 5}) | ||
* //=> Tile { tx: 23, ty: 20, zoom: 5 } | ||
*/ | ||
@@ -78,2 +80,5 @@ function latLngToTile(init) { | ||
* @returns {Google} Google Tile | ||
* @example | ||
* latLngToGoogle({lat: 45, lng: 90, zoom: 5}) | ||
* //=> Google { x: 23, y: 11, zoom: 5 } | ||
*/ | ||
@@ -91,2 +96,4 @@ function latLngToGoogle(init) { | ||
* @returns {Tile} | ||
* metersToTile({mx: 10000000, my: 5500000, zoom: 5}) | ||
* //=> Tile { tx: 23, ty: 20, zoom: 5 } | ||
*/ | ||
@@ -725,4 +732,5 @@ function metersToTile(init) { | ||
// console.log(metersToPixels({mx: 10000000, my: 5500000, zoom: 13})) | ||
console.log(metersToPixels({ mx: 3000, my: 4000 })); | ||
// console.log(metersToPixels({mx: 3000, my: 4000})) | ||
console.log(latLngToMeters({ lat: 23, lng: 23 })); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -97,2 +97,4 @@ import * as Debug from 'debug' | ||
* @returns {Tile} | ||
* latLngToTile({lat: 45, lng: 90, zoom: 5}) | ||
* //=> Tile { tx: 23, ty: 20, zoom: 5 } | ||
*/ | ||
@@ -110,2 +112,5 @@ export function latLngToTile(init: InterfaceLatLng) { | ||
* @returns {Google} Google Tile | ||
* @example | ||
* latLngToGoogle({lat: 45, lng: 90, zoom: 5}) | ||
* //=> Google { x: 23, y: 11, zoom: 5 } | ||
*/ | ||
@@ -123,2 +128,4 @@ export function latLngToGoogle(init: InterfaceLatLng) { | ||
* @returns {Tile} | ||
* metersToTile({mx: 10000000, my: 5500000, zoom: 5}) | ||
* //=> Tile { tx: 23, ty: 20, zoom: 5 } | ||
*/ | ||
@@ -125,0 +132,0 @@ export function metersToTile(init: Meters) { |
{ | ||
"name": "global-mercator", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Global Mercator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,3 +88,4 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
Returns **Tile** | ||
Returns **Tile** latLngToTile({lat: 45, lng: 90, zoom: 5}) | ||
//=> Tile { tx: 23, ty: 20, zoom: 5 } | ||
@@ -100,2 +101,9 @@ # latLngToGoogle | ||
**Examples** | ||
```javascript | ||
latLngToGoogle({lat: 45, lng: 90, zoom: 5}) | ||
//=> Google { x: 23, y: 11, zoom: 5 } | ||
``` | ||
Returns **Google** Google Tile | ||
@@ -112,3 +120,4 @@ | ||
Returns **Tile** | ||
Returns **Tile** metersToTile({mx: 10000000, my: 5500000, zoom: 5}) | ||
//=> Tile { tx: 23, ty: 20, zoom: 5 } | ||
@@ -115,0 +124,0 @@ # pixelsToMeters |
Sorry, the diff of this file is not supported yet
847779
23154
362