UNPKG

leaflet-webatlastile

Version:

Leaflet plugin to use Webatlas tilecache with correct attribution and apikey's. Requires only vanilla Leaflet.

14 lines (13 loc) 379 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doTemplate = void 0; exports.doTemplate = function (string, data) { var value; for (var key in data) { if (data.hasOwnProperty(key)) { value = data[key]; string = string.replace('{' + key + '}', value); } } return string; };