summaryrefslogtreecommitdiff
path: root/node_modules/pigeon-maps/lib/providers.cjs.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pigeon-maps/lib/providers.cjs.js')
-rw-r--r--node_modules/pigeon-maps/lib/providers.cjs.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/node_modules/pigeon-maps/lib/providers.cjs.js b/node_modules/pigeon-maps/lib/providers.cjs.js
new file mode 100644
index 0000000..58e063f
--- /dev/null
+++ b/node_modules/pigeon-maps/lib/providers.cjs.js
@@ -0,0 +1,53 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+function osm(x, y, z) {
+ return "https://tile.openstreetmap.org/" + z + "/" + x + "/" + y + ".png";
+}
+function stamenToner(x, y, z, dpr) {
+ if (dpr === void 0) {
+ dpr = 1;
+ }
+
+ return "https://stamen-tiles.a.ssl.fastly.net/toner/" + z + "/" + x + "/" + y + (dpr >= 2 ? '@2x' : '') + ".png";
+}
+function stamenTerrain(x, y, z, dpr) {
+ if (dpr === void 0) {
+ dpr = 1;
+ }
+
+ return "https://stamen-tiles.a.ssl.fastly.net/terrain/" + z + "/" + x + "/" + y + (dpr >= 2 ? '@2x' : '') + ".jpg";
+}
+var maptiler = function maptiler(apiKey, map) {
+ if (map === void 0) {
+ map = 'streets';
+ }
+
+ return function (x, y, z, dpr) {
+ if (dpr === void 0) {
+ dpr = 1;
+ }
+
+ return "https://api.maptiler.com/maps/" + map + "/256/" + z + "/" + x + "/" + y + (dpr >= 2 ? '@2x' : '') + ".png?key=" + apiKey;
+ };
+};
+var stadiamaps = function stadiamaps(style) {
+ if (style === void 0) {
+ style = 'alidade_smooth';
+ }
+
+ return function (x, y, z, dpr) {
+ if (dpr === void 0) {
+ dpr = 1;
+ }
+
+ return "https://tiles.stadiamaps.com/styles/" + style + "/" + z + "/" + x + "/" + y + (dpr >= 2 ? '@2x' : '') + ".png";
+ };
+};
+
+exports.maptiler = maptiler;
+exports.osm = osm;
+exports.stadiamaps = stadiamaps;
+exports.stamenTerrain = stamenTerrain;
+exports.stamenToner = stamenToner;