Support for serving raw vector tiles
This commit is contained in:
11
src/utils.js
11
src/utils.js
@@ -2,7 +2,16 @@
|
||||
|
||||
module.exports.getTileUrls = function(
|
||||
protocol, domains, host, path, tilePath, format, key) {
|
||||
domains = domains && domains.length > 0 ? domains : [host];
|
||||
|
||||
if (domains) {
|
||||
if (domains.constructor === String && domains.length > 0) {
|
||||
domains = domains.split(',');
|
||||
}
|
||||
}
|
||||
if (!domains || domains.length == 0) {
|
||||
domains = [host];
|
||||
}
|
||||
|
||||
var query = (key && key.length > 0) ? ('?key=' + key) : '';
|
||||
if (path == '/') {
|
||||
path = '';
|
||||
|
||||
Reference in New Issue
Block a user