map-tile-url

1.0.0 • Public • Published

map-tile-url

get a map tile url, from openstreetmap, google, or bing.

This code is pulled out of cartegan because it is useful on it's own.

var gmt = require('get-map-tile')
 
var url = gmt(x, y, z)
console.log(url)
 

providers

gmt.openStreetMap, gmt.google, gmt.bing are supported. openStreetMap is the default. all have the same api

getMapTile(x, y, z, i?)

retrive a tile. 'i' is the load balancing variable, which decides which server to request from. you can set it manually, or leave it and it will be set randomly.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i map-tile-url

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nopersonsmodules