Skip to content

Commit 49b96d7

Browse files
prushforprushfor
prushfor
authored and
prushfor
committed
Fix slugs / broken links
1 parent d44759b commit 49b96d7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/api/mapml-viewer-api.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ navigator.geolocation.getCurrentPosition(success, error, options);
330330

331331
### geojson2mapml(json, options)
332332

333-
Convert a GeoJSON feature or feature collection string or object to MapML [`<layer->`](/web-map-doc/docs/layers/layer/) containing one or more [`<map-feature>`](/web-map-doc/docs/elements/feature/) elements. Returns and adds the converted layer element to the map.
333+
Convert a GeoJSON feature or feature collection string or object to MapML [`<layer->`](/web-map-doc/docs/elements/layer/) containing one or more [`<map-feature>`](/web-map-doc/docs/elements/feature/) elements. Returns and adds the converted layer element to the map.
334334

335335
:::tip
336336

@@ -351,11 +351,11 @@ Check out [this application](https://maps4html.org/experiments/api/custom-map-ui
351351

352352
| Option | Type | Default | Description |
353353
|------|------|---------------|--------|
354-
| `label` | <String\> | `json.name`, `json.title` or "Layer" | Sets the output layer's [label](/web-map-doc/docs/layers/layer/#label). |
354+
| `label` | <String\> | `json.name`, `json.title` or "Layer" | Sets the output layer's [label](/web-map-doc/docs/elements/layer/#label). |
355355
| `projection` | <String\> | `map`.[projection](/web-map-doc/docs/elements/mapml-viewer/#projection) or `OSMTILE` | Sets the output layer's [projection](/web-map-doc/docs/elements/mapml-viewer/#projection). Defined values include: `OSMTILE`, `CBMTILE`, `WGS84`, and `APSTILE`.|
356356
| `caption` | <String&nbsp;\|&nbsp;Function\> | `json.features[i].id` or the `label` value | A function that accepts the feature JSON and returns a string, OR a string that is the name of a property to be mapped to the [featurecaption](/web-map-doc/docs/elements/feature/#map-featurecaption). If a matching property is not found, the string provided will be used as the feature caption value. See [basic options usage](#basic-options-usage) for an example. |
357357
| <span id="option-properties">`properties`</span> | <Function&nbsp;\|&nbsp;String&nbsp;\|&nbsp;HTMLElement\> | _Properties will be mapped to an HTML [table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table)._ | Specifies how the properties are mapped. <Function\> - A function that accepts one argument - the GeoJSON feature object - and which must return an HTMLElement that becomes the single child element of the <properties\> element. <String\> - A string that will be parsed and used as the single child element of the `<properties>` element for all features. <HTMLElement\> - an element that will be used as the single child element of `<properties>` element for all features. See [basic options usage](#basic-options-usage) for an example.|
358-
| `geometryFunction` | <Function\> | _MapML geometry will mirror the GeoJSON geometry value_ | <Function\> A function to modify the generated [descendants](/web-map-doc/docs/elements/geometry/#child-elements) of `<map-geometry>` which can add classes, [hyperlinks](/web-map-doc/docs/other-elements/map-a/) and [span's](/web-map-doc/docs/other-elements/span/) to the instance. Plain `<map-geometry>` element will be created by default. The function accepts two arguments: The generated [child element](/web-map-doc/docs/elements/geometry/#child-elements) of `<map-geometry>` and the [feature json object](https://www.rfc-editor.org/rfc/rfc7946#section-3.2) to return a modified child element of the `<map-geometry>` element. See [basic options usage](#basic-options-usage) for an example. |
358+
| `geometryFunction` | <Function\> | _MapML geometry will mirror the GeoJSON geometry value_ | <Function\> A function to modify the generated [descendants](/web-map-doc/docs/elements/geometry/#child-elements) of `<map-geometry>` which can add classes, [hyperlinks](/web-map-doc/docs/elements/map-a/) and [span's](/web-map-doc/docs/elements/span/) to the instance. Plain `<map-geometry>` element will be created by default. The function accepts two arguments: The generated [child element](/web-map-doc/docs/elements/geometry/#child-elements) of `<map-geometry>` and the [feature json object](https://www.rfc-editor.org/rfc/rfc7946#section-3.2) to return a modified child element of the `<map-geometry>` element. See [basic options usage](#basic-options-usage) for an example. |
359359

360360
---
361361

docs/elements/map-a.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: map-a
33
title: "<map-a>"
4-
slug: /other-elements/map-a/
4+
slug: /elements/map-a/
55
---
66

77
The `<map-a>` element is a proposal to extend the Web to include links between maps and locations.

docs/elements/span.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: span
33
title: "<map-span>"
4-
slug: /other-elements/span/
4+
slug: /elements/span/
55
---
66

77
The `<map-span>` element is useful when used together with html global attributes such as [class](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class). This element allows you to wrap the coordinate pairs in a `<map-coordinates>` element, allowing the wrapped coordinates to be targeted by CSS selectors, and thus independently styled.

docs/elements/style.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "<map-style>"
44
slug: /elements/style/
55
---
66

7-
The `<map-style>` element allows map authors to embed CSS into map layers. The CSS can be used to style the geometry of the layer using [`<map-span>`](../../other-elements/span/), and by setting the class attribute to the [child elements](../geometry/#child-elements) of the geometry.
7+
The `<map-style>` element allows map authors to embed CSS into map layers. The CSS can be used to style the geometry of the layer using [`<map-span>`](../../elements/span/), and by setting the class attribute to the [child elements](../geometry/#child-elements) of the geometry.
88

99
## Attributes
1010

0 commit comments

Comments
 (0)