Skip to content

Commit 4927793

Browse files
committed
Address Robert's comments
1 parent 36f26e1 commit 4927793

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/maps/mapml-viewer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ The `<mapml-viewer>` element is the main element you can use to put a custom Web
1010

1111
```html
1212
<!DOCTYPE html>
13-
<html>
13+
<html lang="en">
1414
<head>
15-
<title>A Simple Web Map[tm]</title>
1615
<meta charset="utf-8" />
16+
<title>A Simple Web Map[tm]</title>
17+
<meta name="viewport" content="width=device-width, initial-scale=1">
1718
<script type="module" src="web-map/mapml-viewer.js"></script>
18-
<style>html {height:100%} * {margin:0px;padding:0px} body,mapml-viewer {height:inherit}</style>
1919
</head>
2020
<body>
2121
<mapml-viewer projection="OSMTILE" zoom="0" lat="0.0" lon="0.0" controls>
@@ -43,7 +43,7 @@ The `<mapml-viewer>` element has several attributes to control the presentation
4343

4444
- `APSTILE` is based on the Alaska Polar Stereographic (EPSG:5936) projected coordinate reference system, and has 20 zoom levels (0 to 19).
4545

46-
- other projections are possible, using the "[Custom Projections](https://github.com/Maps4HTML/Web-Map-Custom-Element/pull/239/commits/e9a29e7abcc43d7f15eb64729920e2ad06fc25c5)" API
46+
- other projections are possible, using the "[Custom Projections](https://github.com/Maps4HTML/Web-Map-Custom-Element/blob/8723e4d8bad8e3629bc9dca7a6fe81d724e8418f/demo/CustomProjection.html#L1-L158)" API
4747

4848
`zoom` - a non-negative integer. The value establishes the initial zoom level of the map. For a small scale view of the world, use a lower value. Use larger values for larger scales (smaller area maps). The maximum value depends on the particular `projection` and data source. Many map data sources have limited zoom levels available.
4949

docs/maps/web-map.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ In recent years, client side image maps have fallen out of wide use, due to impr
1010

1111
The web-map custom element suite provides a set of proof-of-concept "[customized built-in](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)" elements based on `<map>`, `<area>` and `<img>` that will "fall back" to a client side image map in older browsers, or in the absence of JavaScript (scripting disabled).
1212

13+
:::caution
14+
1315
Note that because not all modern Web browsers implement HTML's customized built-in elements, it is not recommended to use this proof-of-concept on a public Web site, as end-user confusion may be the result.
1416

17+
:::
18+
1519
The following markup may work on Chrome and Firefox, although it may take some fine tuning:
1620

1721
```html

0 commit comments

Comments
 (0)