getMercCoords(x, y, z)

index.js

getMercCoords

Parameters

Returns

Array :

[x, y]

getTileBBox(x, y, z)

index.js

getTileBBox

Parameters

Returns

String :

String of the bounding box

getURL(baseUrl, [options.height], x, y, z, [options], layer)

index.js

getURL

Parameters

  • String baseUrl :

    Base url of the WMS server

  • Number = options.height (default '256') :
  • Number x :

    Tile coordinate x

  • Number y :

    Tile coordinate y

  • Number z :

    Tile zoom

  • Object = options :
    • String = options.service (default 'WMS')
    • String = options.version (default '1.1.1')
    • String = options.request (default 'GetMap')
    • String = options.srs (default 'EPSG:3857')
    • Number = options.width (default '256')
    • String = options.format (default 'image/png')
  • String layer :

    Layer name

Returns

String :

url

Examples

var baseUrl = 'http://geodata.state.nj.us/imagerywms/Natural2015';
var layer = 'Natural2015';
var url = whoots.getURL(baseUrl, layer, 154308, 197167, 19);