diff options
Diffstat (limited to 'src/dumbymap.mjs')
-rw-r--r-- | src/dumbymap.mjs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 35a4614..593875e 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -111,11 +111,17 @@ export const markdown2HTML = (container, mdContent) => { | |||
111 | * | 111 | * |
112 | * @param {HTMLElement} container - The container element for the maps | 112 | * @param {HTMLElement} container - The container element for the maps |
113 | * @param {Object} options - Configuration options | 113 | * @param {Object} options - Configuration options |
114 | * @param {string} options.crs - CRS in EPSG/ESRI code, see epsg.io | ||
114 | * @param {number} [options.delay=1000] - Delay before rendering maps (in milliseconds) | 115 | * @param {number} [options.delay=1000] - Delay before rendering maps (in milliseconds) |
115 | * @param {Function} options.mapCallback - Callback function to be called after map rendering | 116 | * @param {Function} options.mapCallback - Callback function to be called after map rendering |
116 | */ | 117 | */ |
117 | export const generateMaps = (container, { layouts = [], delay, renderCallback } = {}) => { | 118 | export const generateMaps = (container, { |
118 | /** Prepare Contaner/HTML Holder/Showcase */ | 119 | crs = 'EPSG:4326', |
120 | layouts = [], | ||
121 | delay, | ||
122 | renderCallback, | ||
123 | } = {}) => { | ||
124 | /** Prepare Contaner/HTML-Holder/Showcase */ | ||
119 | container.classList.add('Dumby') | 125 | container.classList.add('Dumby') |
120 | delete container.dataset.layout | 126 | delete container.dataset.layout |
121 | container.dataset.layout = defaultLayouts[0].name | 127 | container.dataset.layout = defaultLayouts[0].name |