UNPKG

staticmaps

Version:

A Node.js library for creating map images with markers, polylines, polygons and text.

17 lines (16 loc) 868 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); var TileServerConfig = /*#__PURE__*/(0, _createClass2["default"])(function TileServerConfig(options) { (0, _classCallCheck2["default"])(this, TileServerConfig); this.options = options; this.tileUrl = 'tileUrl' in this.options ? this.options.tileUrl : 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'; this.tileSubdomains = this.options.tileSubdomains || this.options.subdomains || []; }); var _default = exports["default"] = TileServerConfig; module.exports = TileServerConfig;