Skip to content

Commit 2b019ca

Browse files
authored
Update documentation to reflect default cs of gcrs for map-geometry (#170)
1 parent d8db1b7 commit 2b019ca

File tree

12 files changed

+2
-31
lines changed

12 files changed

+2
-31
lines changed

docs/elements/geometry.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ A `<map-geometry>` element has one child element, which can be a `<map-point>`,
1313

1414
### `cs`
1515

16-
Defines the Coordinate System of the geometry. When no `cs` is provided, the coordinate system of descendant `<map-coordinates>` elements is determined by a fallback to any in-scope `<map-meta name="cs" content="...">`. If no fallback coordinate system is identified by a `<map-meta>` element, the default value of `pcrs` (projected coordinates) is used.
17-
16+
Defines the Coordinate System of the geometry. When no `cs` is provided, the coordinate system of descendant `<map-coordinates>` elements is determined by a fallback to any in-scope `<map-meta name="cs" content="...">`. If no fallback coordinate system is specified by a `<map-meta>` element, the default coordinate system of the `map-layer` is used; if none is defined, `gcrs` (geographic coordinates) is used.
1817

1918
| CRS | Description |
2019
|------|-------------|
@@ -91,7 +90,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
9190
<map-meta name="projection" content="OSMTILE"></map-meta>
9291
<map-feature>
9392
<map-featurecaption>Point</map-featurecaption>
94-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
9593
<map-geometry cs="gcrs">
9694
<map-point class="point">
9795
<map-coordinates>-75.6916809 45.4186964</map-coordinates>
@@ -112,7 +110,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
112110
<map-meta name="projection" content="OSMTILE"></map-meta>
113111
<map-feature>
114112
<map-featurecaption>Line</map-featurecaption>
115-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
116113
<map-geometry cs="gcrs">
117114
<map-linestring class="line">
118115
<map-coordinates>-75.6168365 45.471929 -75.6855011 45.458445 -75.7016373 45.4391764 -75.7030106 45.4259255 -75.7236099 45.4208652 -75.7565689 45.4117074 -75.7833481 45.384225 -75.8197403 45.3714435 -75.8516693 45.377714</map-coordinates>
@@ -133,7 +130,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
133130
<map-meta name="projection" content="OSMTILE"></map-meta>
134131
<map-feature>
135132
<map-featurecaption>Polygon</map-featurecaption>
136-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
137133
<map-geometry cs="gcrs">
138134
<map-polygon class="polygon">
139135
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>
@@ -155,7 +151,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
155151
<map-meta name="projection" content="OSMTILE"></map-meta>
156152
<map-feature>
157153
<map-featurecaption>MultiPoint</map-featurecaption>
158-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
159154
<map-geometry cs="gcrs">
160155
<map-multipoint class="point">
161156
<map-coordinates>-75.7016373 45.4391764 -75.7236099 45.4208652 -75.7833481 45.384225</map-coordinates>
@@ -176,7 +171,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
176171
<map-meta name="projection" content="OSMTILE"></map-meta>
177172
<map-feature>
178173
<map-featurecaption>MultiLineString</map-featurecaption>
179-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
180174
<map-geometry cs="gcrs">
181175
<map-multilinestring class="line">
182176
<map-coordinates>-75.6168365 45.471929 -75.6855011 45.458445 -75.7016373 45.4391764 -75.7030106 45.4259255</map-coordinates>
@@ -198,7 +192,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
198192
<map-meta name="projection" content="OSMTILE"></map-meta>
199193
<map-feature>
200194
<map-featurecaption>MultiPolygon</map-featurecaption>
201-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
202195
<map-geometry cs="gcrs">
203196
<map-multipolygon class="polygon">
204197
<map-polygon>
@@ -224,7 +217,6 @@ For each member geometry, the same non-schema constraints apply as to the unique
224217
<map-meta name="projection" content="OSMTILE"></map-meta>
225218
<map-feature>
226219
<map-featurecaption>Geometry Collection</map-featurecaption>
227-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
228220
<map-geometry cs="gcrs">
229221
<map-geometrycollection>
230222
<map-polygon class="polygon">

docs/elements/span.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ The `<map-span>` element is useful when used together with html global attribute
2121
<map-meta name="projection" content="OSMTILE"></map-meta>
2222
<map-feature>
2323
<map-featurecaption>Polygon</map-featurecaption>
24-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
2524
<map-geometry cs="gcrs">
2625
<map-polygon>
2726
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>

docs/elements/style.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ All the demo's on the documentation pages contain a "CSS" tab which adds the CSS
4343
<map-meta name="projection" content="OSMTILE"></map-meta>
4444
<map-feature>
4545
<map-featurecaption>Polygon</map-featurecaption>
46-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
4746
<map-geometry cs="gcrs">
4847
<map-polygon>
4948
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Un élément `<map-geometry>` a un élément-enfant qui peut être `<map-point>`
1313

1414
### `cs`
1515

16-
Définit le système de coordonnées de la géométrie. Si aucun `cs` n’est fourni, le système de coordonnées des éléments descendants `<map-coordinates>` est déterminé par un retour vers n’importe `<map-meta name="cs" content="...">` dans la portée. Si aucun système de coordonnées n’est identifié par un élément `<map-meta>`, la valeur par défaut de `pcrs` (coordonnées projetées) est utilisée.
16+
Définit le système de coordonnées de la géométrie. Si aucun `cs` n’est fourni, le système de coordonnées des éléments descendants `<map-coordinates>` est déterminé par un retour vers n’importe `<map-meta name="cs" content="...">` dans la portée. Si aucun système de coordonnées de secours n’est spécifié par un élément `<map-meta>`, le système de coordonnées par défaut du `map-layer` est utilisé; si aucun n'est défini, `gcrs` (coordonnées géographiques) est utilisé.
1717

1818
Système de référence de coordonnées
1919
| CRS | Description |
@@ -91,7 +91,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
9191
<map-meta name="projection" content="OSMTILE"></map-meta>
9292
<map-feature>
9393
<map-featurecaption>Point</map-featurecaption>
94-
<!—Les coordonnées de la géométrie sont celles du gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
9594
<map-geometry cs="gcrs">
9695
<map-point class="point">
9796
<map-coordinates>-75.6916809 45.4186964</map-coordinates>
@@ -112,7 +111,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
112111
<map-meta name="projection" content="OSMTILE"></map-meta>
113112
<map-feature>
114113
<map-featurecaption>Ligne</map-featurecaption>
115-
<!—Les coordonnées de la géométrie sont celles de gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
116114
<map-geometry cs="gcrs">
117115
<map-linestring class="line">
118116
<map-coordinates>-75.6168365 45.471929 -75.6855011 45.458445 -75.7016373 45.4391764 -75.7030106 45.4259255 -75.7236099 45.4208652 -75.7565689 45.4117074 -75.7833481 45.384225 -75.8197403 45.3714435 -75.8516693 45.377714</map-coordinates>
@@ -133,7 +131,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
133131
<map-meta name="projection" content="OSMTILE"></map-meta>
134132
<map-feature>
135133
<map-featurecaption>Polygone</map-featurecaption>
136-
<!-- Les coordonnées de la géométrie sont celles de gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
137134
<map-geometry cs="gcrs">
138135
<map-polygon class="polygon">
139136
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>
@@ -155,7 +152,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
155152
<map-meta name="projection" content="OSMTILE"></map-meta>
156153
<map-feature>
157154
<map-featurecaption>MultiPoint</map-featurecaption>
158-
<!-- Les coordonnées de la géométrie sont celles de gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
159155
<map-geometry cs="gcrs">
160156
<map-multipoint class="point">
161157
<map-coordinates>-75.7016373 45.4391764 -75.7236099 45.4208652 -75.7833481 45.384225</map-coordinates>
@@ -176,7 +172,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
176172
<map-meta name="projection" content="OSMTILE"></map-meta>
177173
<map-feature>
178174
<map-featurecaption>MultiLineString</map-featurecaption>
179-
<!-- Les coordonnées de la géométrie sont celles de gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
180175
<map-geometry cs="gcrs">
181176
<map-multilinestring class="line">
182177
<map-coordinates>-75.6168365 45.471929 -75.6855011 45.458445 -75.7016373 45.4391764 -75.7030106 45.4259255</map-coordinates>
@@ -198,7 +193,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
198193
<map-meta name="projection" content="OSMTILE"></map-meta>
199194
<map-feature>
200195
<map-featurecaption>MultiPolygon</map-featurecaption>
201-
<!-- Les coordonnées de la géométrie sont celles de gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
202196
<map-geometry cs="gcrs">
203197
<map-multipolygon class="polygon">
204198
<map-polygon>
@@ -224,7 +218,6 @@ Pour chaque géométrie membre, les mêmes contraintes non schéma s’appliquen
224218
<map-meta name="projection" content="OSMTILE"></map-meta>
225219
<map-feature>
226220
<map-featurecaption>Collection de géométries</map-featurecaption>
227-
<!-- Les coordonnées de la géométrie sont celles de gcrs, puisque le système de référence des coordonnées par défaut est pcrs -->
228221
<map-geometry cs="gcrs">
229222
<map-geometrycollection>
230223
<map-polygon class="polygon">

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ L’élément `<map-span>` est utile lorsqu’il est utilisé avec des attributs
2121
<map-meta name="projection" content="OSMTILE"></map-meta>
2222
<map-feature>
2323
<map-featurecaption>Polygone</map-featurecaption>
24-
<!-- Régler les coordonnées de géométrie à gcrs, puisque la valeur par défaut correspond à pcrs -->
2524
<map-geometry cs="gcrs">
2625
<map-polygon>
2726
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Toutes les démonstrations comprises dans les pages de documentation contiennent
3737
<map-meta name="projection" content="OSMTILE"></map-meta>
3838
<map-feature>
3939
<map-featurecaption>Polygone</map-featurecaption>
40-
<!-- Régler les coordonnées de géométrie à gcrs, puisque la valeur par défaut correspond à pcrs -->
4140
<map-geometry cs="gcrs">
4241
<map-polygon>
4342
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>

static/demo/map-feature-demo/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ <h2>MapML Demo: &lt;map-feature&gt;</h2>
3838
<map-meta name="projection" content="OSMTILE"></map-meta>
3939
<map-feature>
4040
<map-featurecaption>Polygon</map-featurecaption>
41-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
4241
<map-geometry cs="gcrs">
4342
<map-polygon class="polygon">
4443
<map-coordinates>-75.5859375 45.4656690 -75.6813812 45.4533876 -75.6961441 45.4239978 -75.7249832 45.4083331 -75.7792282 45.3772317 -75.7534790 45.3294614 -75.5831909 45.3815724 -75.6024170 45.4273712 -75.5673981 45.4639834 -75.5859375 45.4656690</map-coordinates>
@@ -49,7 +48,6 @@ <h2>MapML Demo: &lt;map-feature&gt;</h2>
4948

5049
<map-feature>
5150
<map-featurecaption>Line</map-featurecaption>
52-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
5351
<map-geometry cs="gcrs">
5452
<map-linestring class="line">
5553
<map-coordinates>-75.6168365 45.471929 -75.6855011 45.458445 -75.7016373 45.4391764 -75.7030106 45.4259255 -75.7236099 45.4208652 -75.7565689 45.4117074 -75.7833481 45.384225 -75.8197403 45.3714435 -75.8516693 45.377714</map-coordinates>
@@ -60,7 +58,6 @@ <h2>MapML Demo: &lt;map-feature&gt;</h2>
6058

6159
<map-feature>
6260
<map-featurecaption>Point</map-featurecaption>
63-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
6461
<map-geometry cs="gcrs">
6562
<map-point class="point">
6663
<map-coordinates>-75.6916809 45.4186964</map-coordinates>

static/demo/map-geometry-demo/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ <h2>MapML Demo: &lt;map-geometry&gt;</h2>
3737
<map-meta name="projection" content="OSMTILE"></map-meta>
3838
<map-feature>
3939
<map-featurecaption>Point</map-featurecaption>
40-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
4140
<map-geometry cs="gcrs">
4241
<map-point class="point">
4342
<map-coordinates>-75.6916809 45.4186964</map-coordinates>

static/demo/map-link-demo/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ <h2>MapML Demo: &lt;map-link&gt;</h2>
3838
<map-meta name="projection" content="OSMTILE"></map-meta>
3939
<map-feature>
4040
<map-featurecaption>Ottawa</map-featurecaption>
41-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
4241
<map-geometry cs="gcrs">
4342
<map-point class="ottawa">
4443
<map-coordinates>-75.697193 45.421530</map-coordinates>

static/demo/map-span-demo/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ <h2>MapML Demo: &lt;map-span&gt;</h2>
3737
<map-meta name="projection" content="OSMTILE"></map-meta>
3838
<map-feature>
3939
<map-featurecaption>Polygon</map-featurecaption>
40-
<!-- Setting the geometry coordinates to gcrs, as the default is pcrs -->
4140
<map-geometry cs="gcrs">
4241
<map-polygon>
4342
<map-coordinates><map-span class="border">-75.8242035 45.3526278 -75.6793213 45.4572409 -75.5680847 45.4692806</map-span> -75.6092834 45.4215881 -75.5756378 45.3810901 -75.7946777 45.3120804 -75.8242035 45.3526278</map-coordinates>

0 commit comments

Comments
 (0)