Skip to content

Commit

Permalink
[UPD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Oct 16, 2024
1 parent 68ace5b commit 719540a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion control/layerSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getLayerSwitcher() {
if (!e.layer.get('inview')) e.layer.set('inview', true)
e.li.dataset.inview = '';
}
const title = 'la couche '+ e.layer.get('title') + ' n\'est pas visible sur cette zone à certte échelle'
const title = 'la couche '+ e.layer.get('title') + ' n\'est pas visible sur cette zone à cette échelle'
ol_ext_element.create('DIV', {
className: 'disabled',
title: title,
Expand Down
4 changes: 3 additions & 1 deletion layer/Statistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,9 @@ Statistic.prototype.getParametricStyle = function(stat, format) {
const att = stat.cols[0]
const legend = this.getStatLegend().reverse();
legend.forEach(l => {
l.feature.setIgnStyle(style2IgnStyle(l.feature))
if (l.feature) {
l.feature.setIgnStyle(style2IgnStyle(l.feature))
}
})
switch (stat.typeMap) {
case 'categorie':
Expand Down
10 changes: 6 additions & 4 deletions md/help/attr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ Texte en cas de non respect de la condition : le nom ne contient pas "Loire"
```
[----]


```hidden
Vous pouvez préciser comment on affiche la fiche avec le paramètre `display` (none : jamais, all : toujours, layer : pour la couche, condition : si respecte la condition)
Enfin, si vous préciser un QCM, cela va premettre de décompter la réponse comme un QCM (valide si respecte la condition) ou pas.
Enfin, si vous préciser un QCM, cela va permettre de décompter la réponse comme un QCM (valide si respecte la condition) ou pas.
[-- :fa-code:fw: Code --]
```md
```md
```FeatureSelect
layerId: 2
display: layer
Expand All @@ -191,7 +193,7 @@ Texte en cas de bonne réponse
---INFO nok
Texte en cas de mauvaise réponse
```
```
```
[----]

```

4 changes: 4 additions & 0 deletions md/md2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ md2html.doWidget = function (md, data) {
md = md.substr(c+1);
// Handle charts
switch (type.split(' ').shift()) {
// hidden
case 'hidden': {
return '';
}
// Piwik
case 'piwik': {
return '<iframe style="border: 0; height: 200px; width: 600px; margin: auto; display: block;" src="https://piwik.ign.fr/piwik/public.php?module=CoreAdminHome&amp;action=optOut&amp;language=fr"></iframe>'
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"maplibre-gl": "^4.5.0",
"mongo-parse": "^2.1.0",
"ol": "^8.2.0",
"ol-ext": "^4.0.23",
"ol-ext": "^4.0.24",
"ol-mapbox-style": "^8.0.5",
"papaparse": "^5.4.1",
"proj4": "^2.9.0",
Expand Down

0 comments on commit 719540a

Please sign in to comment.