Constructor
new GSSTileLayer(url, options, headers)
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The url of the tile layer. |
options |
JSONObject | The key value pair to substitute custom parameters in the URL. |
headers |
Array | Optional: Array of key value pair that needs to be passed as a header to retrieve URL. |
Example
var tileLayer = new GSSTileLayer(`http://somesite/map/v1.0/rasterTile?api_key=` + '{API_KEY_HERE}&fmt=png&loc=en-us&res=192&sz=256&v=1.0&x={x}&y={y}&z={z}', { api_key: accessToken, maxZoom: 22 })