Skip to content

Commit

Permalink
Address Robert's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Mar 23, 2021
1 parent 36f26e1 commit 4927793
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/maps/mapml-viewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ The `<mapml-viewer>` element is the main element you can use to put a custom Web

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

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

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

`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.

Expand Down
4 changes: 4 additions & 0 deletions docs/maps/web-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ In recent years, client side image maps have fallen out of wide use, due to impr

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).

:::caution

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.

:::

The following markup may work on Chrome and Firefox, although it may take some fine tuning:

```html
Expand Down

0 comments on commit 4927793

Please sign in to comment.