Gå til indhold

ScaleBox

Dansk navn: Skalavælger
Engelsk navn: ScaleBox
Ikon: Ingen (ingen UI-knap)

Indikator og vælger for kortets skala.

ScaleBox (åbner i et nyt vindue)

I eksempel-configNote
DesktopJaI plugins.desktop
MobilNej
DashboardNej
KontekstJaFindes i pluginsConfig.json

Parametre under cfg i localConfig:

  • style (object) — CSS for scaleboxen
  • readOnly (Boolean) — vælgeren er skrivebeskyttet
  • label (string) — etiket for vælgeren
  • display (string) — "scale" eller "zoom"
  • useRawInput (Boolean) — brug almindeligt HTML-input
  • disablePluginIf (udtryk, standard {state('mapType') === 'cesium'}) — skjuler pluginet, når udtrykket er sandt. Kan overskrives i localConfig.

Standardkonfiguration i localConfig.json

Sektion kaldt “Standardkonfiguration i localConfig.json”
{
"name": "ScaleBox"
}

Standardkonfiguration i pluginsConfig.json

Sektion kaldt “Standardkonfiguration i pluginsConfig.json”
{
"name": "ScaleBox",
"title": "plugins.ScaleBox.title",
"description": "plugins.ScaleBox.description",
"dependencies": [
"MapFooter"
]
}