diff options
Diffstat (limited to 'src/dumbymap.mjs')
-rw-r--r-- | src/dumbymap.mjs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 4405786..4cfc484 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -12,7 +12,7 @@ import PlainModal from 'plain-modal' | |||
12 | import proj4 from 'proj4' | 12 | import proj4 from 'proj4' |
13 | import { register, fromEPSGCode } from 'ol/proj/proj4' | 13 | import { register, fromEPSGCode } from 'ol/proj/proj4' |
14 | 14 | ||
15 | /** Selector of special HTML Elements */ | 15 | /** CSS Selector for main components */ |
16 | const mapBlockSelector = 'pre:has(.language-map)' | 16 | const mapBlockSelector = 'pre:has(.language-map)' |
17 | const docLinkSelector = 'a[href^="#"][title^="=>"]' | 17 | const docLinkSelector = 'a[href^="#"][title^="=>"]' |
18 | const geoLinkSelector = 'a[href^="geo:"]' | 18 | const geoLinkSelector = 'a[href^="geo:"]' |
@@ -175,11 +175,11 @@ export const generateMaps = (container, { | |||
175 | } | 175 | } |
176 | }) | 176 | }) |
177 | 177 | ||
178 | /** Create DocLinks */ | 178 | /** LINK: Create DocLinks */ |
179 | container.querySelectorAll(docLinkSelector) | 179 | container.querySelectorAll(docLinkSelector) |
180 | .forEach(utils.createDocLink) | 180 | .forEach(utils.createDocLink) |
181 | 181 | ||
182 | /** Add external symbol on anchors */ | 182 | /** LINK: Add external symbol on anchors */ |
183 | container.querySelectorAll('a') | 183 | container.querySelectorAll('a') |
184 | .forEach(a => { | 184 | .forEach(a => { |
185 | if (a.href.startsWith('http') && !a.href.startsWith(window.location.origin)) { | 185 | if (a.href.startsWith('http') && !a.href.startsWith(window.location.origin)) { |
@@ -187,7 +187,7 @@ export const generateMaps = (container, { | |||
187 | } | 187 | } |
188 | }) | 188 | }) |
189 | 189 | ||
190 | /** Set CRS and GeoLinks */ | 190 | /** LINK: Set CRS and GeoLinks */ |
191 | register(proj4) | 191 | register(proj4) |
192 | fromEPSGCode(crs).then(projection => { | 192 | fromEPSGCode(crs).then(projection => { |
193 | const transform = proj4(crs, 'EPSG:4326').forward | 193 | const transform = proj4(crs, 'EPSG:4326').forward |
@@ -417,7 +417,7 @@ export const generateMaps = (container, { | |||
417 | /** | 417 | /** |
418 | * updateAttributeByStep. | 418 | * updateAttributeByStep. |
419 | * | 419 | * |
420 | * @param {Object} -- renderer which is running steps | 420 | * @param {Object} - renderer which is running steps |
421 | */ | 421 | */ |
422 | const updateAttributeByStep = ({ results, target, steps }) => { | 422 | const updateAttributeByStep = ({ results, target, steps }) => { |
423 | let passNum = results.filter( | 423 | let passNum = results.filter( |
@@ -442,7 +442,7 @@ export const generateMaps = (container, { | |||
442 | * config converter for mapclay.renderWith() | 442 | * config converter for mapclay.renderWith() |
443 | * | 443 | * |
444 | * @param {Object} config | 444 | * @param {Object} config |
445 | * @return {Object} -- converted config | 445 | * @return {Object} - converted config |
446 | */ | 446 | */ |
447 | const configConverter = config => ({ | 447 | const configConverter = config => ({ |
448 | use: config.use ?? 'Leaflet', | 448 | use: config.use ?? 'Leaflet', |