Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Maps4HTML/Web-Map-Custom-Element

A custom <mapml-viewer> and <layer-> element suite
https://github.com/Maps4HTML/Web-Map-Custom-Element

custom-elements dom hypertext mapml maps progressive-enhancement web-platform

Last synced: 3 months ago
JSON representation

A custom <mapml-viewer> and <layer-> element suite

Lists

README

        

![Continuous Testing](badge.svg)

# <mapml-viewer>

The <mapml-viewer> is a declarative vocabulary for Web mapping that extends
HTML to include modern Web maps. It is a pilot / reference implementation of the
proposed and evolving [Map Markup Language](https://maps4html.org/web-map-doc/docs/)
Web standard.

## Installation

```console
$ npm install @maps4html/web-map-custom-element
```

See [instructions](https://maps4html.org/web-map-doc/docs/installation#install-the-mapml-viewer-suite-of-custom-elements) for further details.

## Usage

You create a map with one or more layers via the <mapml-viewer> HTML tag. Add
layers via the <layer-> tag with content OR a src attribute pointing to a
MapML document (must be served as either `text/mapml` or `application/xml` content
type):

```html

```
OR inline content
```html








```

## Contributing

See [CONTRIBUTING](https://github.com/Maps4HTML/Web-Map-Custom-Element/blob/main/CONTRIBUTING.md#contributing-to-mapml) for details, but generally:

0. Join our [Community Group](https://www.w3.org/community/wp-login.php?redirect_to=%2Fcommunity%2Fmaps4html%2Fjoin)
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## History

TODO: Write history

## Credits

Map for HTML Community members and supporters past, present and future.

## License

All Reports in this Repository are licensed by Contributors under the
[W3C Software and Document License](http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document).
Contributions to Specifications are made under the
[W3C CLA](https://www.w3.org/community/about/agreements/cla/).