Skip to content

Commit e5639a2

Browse files
committed
Update description of <map-link disabled> attribute in en and fr
1 parent 3980b76 commit e5639a2

File tree

2 files changed

+23
-0
lines changed
  • docs/elements
  • i18n/fr/docusaurus-plugin-content-docs/current/elements

2 files changed

+23
-0
lines changed

docs/elements/link.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ The `href` of a `<map-link>` must be a URL value of a resource that can be fetch
8181
The URL can be absolute or relative.
8282

8383
---
84+
### `disabled`
85+
86+
The read-write `disabled` boolean attribute works with `<map-link rel=stylesheet>` and
87+
`<map-link rel="tile | image | features | query">`. When set, it disables and
88+
unloads the stylesheet or map content as applicable. The read-only `disabled`
89+
attribute of the `<map-layer>` and `<map-extent>` elements is updated to reflect
90+
the new calculated visibility of the `<map-layer>` or `<map-extent>`. When the
91+
`disabled` attribute is removed, the linked CSS stylesheet or map content is loaded.
92+
If the layer and extent content that is loaded is visible, the `<map-layer>` or `<map-extent>`
93+
`disabled` attribute is removed accordingly.
94+
---
95+
8496
### `hreflang`
8597

8698
Advisory [language designation](https://datatracker.ietf.org/doc/html/rfc5646) about remote resource.

i18n/fr/docusaurus-plugin-content-docs/current/elements/link.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ L’attribut `title` de la ressource liée est habituellement rendu ou présent
7070
L’attribut `href` d’un élément `<map-link>` doit correspondre à l’URL d’une ressource pouvant être extraite.
7171
L’URL peut être absolue ou relative.
7272

73+
---
74+
### `disabled`
75+
76+
L'attribut booléen en lecture-écriture `disabled` fonctionne avec `<map-link rel=stylesheet>` et
77+
`<map-link rel=« tile | image | features | query »>`. Lorsqu'il est défini, il
78+
désactive et décharge la feuille de style ou le contenu de la carte, selon le cas.
79+
L'attribut `disabled`des éléments`<map-layer>` et `<map-extent>` est mis à jour
80+
pour refléter la nouvelle visibilité calculée du `<map-layer>` ou du `<map-extent>`.
81+
Lorsque l'attribut `disabled` est supprimé, la feuille de style CSS liée ou
82+
le contenu (du `<map-link>`) est chargé. Si le contenu chargé est visible,
83+
l'attribut `disabled` du `<map-layer>` ou `<map-extent>` est supprimé en conséquence.
7384
---
7485
### `hreflang`
7586

0 commit comments

Comments
 (0)