Skip to content

Commit

Permalink
Fixes #36.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Jul 29, 2021
1 parent 844c269 commit b8420c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You can now use `<mapml-viewer>`, `<layer>` and the other elements that come in

An alternative to downloading the .zip file is to clone the github repository. This option allows you to make any modifications and view the source code more easily.

#### Requreiments
#### Requirements

- [Node.js](https://nodejs.org/en/download/)

Expand Down
4 changes: 2 additions & 2 deletions docs/layers/static-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This element contains the different points, lines and polygons that will be draw

- `cs`
- This allows you to set the [coordinate system](http://example.org/) of the points, lines and polygons.
- Defaults to gcrs, but can be set to tilematrix | pcrs | gcrs explicity.
- Defaults to gcrs, but can be set to tilematrix | pcrs | gcrs explicitly.

---

Expand Down Expand Up @@ -178,4 +178,4 @@ Sets the [extent](http://example.org/) of the layer.
</layer->
</mapml-viewer>
```
[ADD MAP HERE]
[ADD MAP HERE]
6 changes: 3 additions & 3 deletions docs/maps/mapml-viewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The `<mapml-viewer>` element has several attributes to control the presentation

- `OSMTILE` corresponds to the widely-used "Web Mercator" projected coordinate reference system, implying a "tile pyramid" zoom range from 0 to 23 (minimum tile size ~2.4m).

- `WGS84` provides an implementation of the "pseudo plate carée" projected coordinate reference system, wherein the easting and northing axis units are decimal degrees (not meters). In `WGS84`, zoom level 0 contains two tiles that each cover a hemisphere of Earth's surface. `WGS84` is defined with 21 zoom levels (0 to 20).
- `WGS84` provides an implementation of the "pseudo plate carrée" projected coordinate reference system, wherein the easting and northing axis units are decimal degrees (not meters). In `WGS84`, zoom level 0 contains two tiles that each cover a hemisphere of Earth's surface. `WGS84` is defined with 21 zoom levels (0 to 20).

- `CBMTILE` is the de facto standard grid layout for the Canadian Geospatial Data Infrastructure (CGDI), defined by Natural Resources Canada, and is based on the Lambert Conformal Conic projection (EPSG:3978). Zoom levels are based on a numeric map scale denominator (e.g. 10000 corresponding to a map scale of 1:10,000), with a particular pixel resolution selected, and as a result, successive zoom levels' tiles do not nest exactly (as they do in `OSMTILE`, `WGS84` and `APSTILE`).

Expand All @@ -47,9 +47,9 @@ The `<mapml-viewer>` element has several attributes to control the presentation

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

`lat` - a real number latitude. The value establishes the initital latitide of the of the center of the map. Latitudes on Earth range from -90.0 (south) to 90.0 (north). Many projections are not able to display all latitudes, and most projections have a limited range of locations where distortion is controlled or limited. In particular, OSMTILE (Web Mercator) can only display content between the latitude range -84 to 84.
`lat` - a real number latitude. The value establishes the initial latitude of the of the center of the map. Latitudes on Earth range from -90.0 (south) to 90.0 (north). Many projections are not able to display all latitudes, and most projections have a limited range of locations where distortion is controlled or limited. In particular, OSMTILE (Web Mercator) can only display content between the latitude range -84 to 84.

`lon` - a real number longitude. The value establishes the initital longitude of the of the center of the map.Longitudes on Earth range from -180.0 (west) to 180.0 (east). Similar comments related to distortion apply to those for latitude. Be careful, this attribute is named "lon" NOT "long", and if you use "long" your map won't work properly.
`lon` - a real number longitude. The value establishes the initial longitude of the of the center of the map.Longitudes on Earth range from -180.0 (west) to 180.0 (east). Similar comments related to distortion apply to those for latitude. Be careful, this attribute is named "lon" NOT "long", and if you use "long" your map won't work properly.

`controls` - a "boolean" attribute. Turns map controls on (if present) or off (if omitted). In HTML "boolean" attributes don't have values of "true" or "false" per se - they have the implied value of "true" if the attribute exists, and an implied value of "false" if the attribute is not present. Sometimes the default map controls may not be useful for your map, so you may turn them off and design your own.

Expand Down
2 changes: 1 addition & 1 deletion docs/maps/web-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following markup may work on Chrome and Firefox, although it may take some f

To experiment with the `web-map` and `map-area` custom elements, you should link your `<script type="module" src="web-map.js"></script>` to the `web-map.js` file that is built by the web-map custom element suite build process.

In theory, if you take steps to provde the fallback markup, a normal (progressive) Web map experience will be had by most users, while those using an older browser or perhaps even Safari may get the "fallback" client side image map experience.
In theory, if you take steps to provide the fallback markup, a normal (progressive) Web map experience will be had by most users, while those using an older browser or perhaps even Safari may get the "fallback" client side image map experience.

An older example of such a Web map may be found in [this](https://maps4html.org/Web-Map-Custom-Element/blog/progressive-web-maps.html) blog post. Please raise an [issue](https://github.com/Maps4HTML/Web-Map-Custom-Element/issues) if you have comments about how that example works for you.

0 comments on commit b8420c1

Please sign in to comment.