Sha256: ded28db388efd5b17d12bef5781d395bc7e94e977ca635725b883f0ebd414bb6
Contents?: true
Size: 457 Bytes
Versions: 24
Compression:
Stored size: 457 Bytes
Contents
import "leaflet" /** * NOTE: * This has to load before decidim/map in order for it to apply correctly when * the map is initialized. The document.ready handler set by this script has to * be registered before decidim/map registers its own. */ $(() => { $("[data-decidim-map]").on("configure.decidim", (_ev, map, mapConfig) => { const tilesConfig = mapConfig.tileLayer; L.tileLayer(tilesConfig.url, tilesConfig.options).addTo(map); }); });
Version data entries
24 entries across 24 versions & 1 rubygems