You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/mapml-viewer-api.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ map.lat = 21.4; // if it's an invalid value, nothing happens
145
145
```
146
146
Note that the value supplied does not affect the map viewer state, except at
147
147
document load, or when an instance of a `<mapml-viewer>` element is constructed
148
-
and programmatically added to the DOM. To change the value, use [zoomTo()](#zoomTo);
148
+
and programmatically added to the DOM. To change the value, use [zoomTo()](#zoomtolat-lon-zoom);
149
149
150
150
To get the latitude:
151
151
```js
@@ -164,7 +164,7 @@ map.lon = 21.4; // if it's an invalid value, nothing happens
164
164
```
165
165
Note that the value supplied does not affect the map viewer state, except at
166
166
document load, or when an instance of a `<mapml-viewer>` element is constructed
167
-
and programmatically added to the DOM. To change the value, use [zoomTo()](#zoomTo);
167
+
and programmatically added to the DOM. To change the value, use [zoomTo()](#zoomtolat-lon-zoom);
168
168
169
169
To get the longitude:
170
170
```js
@@ -351,7 +351,7 @@ Check out [this application](https://maps4html.org/experiments/api/custom-map-ui
351
351
352
352
| Option | Type | Default | Description |
353
353
|------|------|---------------|--------|
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). |
355
355
|`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`.|
356
356
|`caption`|\<String \| 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. |
357
357
| <spanid="option-properties">`properties`</span> |\<Function \| String \| 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 \<map-properties\> element. \<String\> - A string that will be parsed and used as the single child element of the `<map-properties>` element for all features. \<HTMLElement\> - an element that will be used as the single child element of `<map-properties>` element for all features. See [basic options usage](#basic-options-usage) for an example.|
0 commit comments