Skip to content

Commit e5ab1a3

Browse files
committed
Merge origin/main into main
2 parents 794556a + 7853233 commit e5ab1a3

21 files changed

+65
-50
lines changed

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
if: github.repository == 'Maps4HTML/Web-Map-Custom-Element'
10+
if: github.repository == 'Maps4HTML/MapML.js'
1111
runs-on: ubuntu-latest
1212

1313
steps:

README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

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

1010
## Installation
1111

1212
```console
13-
$ npm install @maps4html/web-map-custom-element
13+
$ npm install @maps4html/mapml
1414
```
1515

1616
See [instructions](https://maps4html.org/web-map-doc/docs/installation#install-the-mapml-viewer-suite-of-custom-elements) for further details.
@@ -43,18 +43,26 @@ OR inline content
4343

4444
## Contributing
4545

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

4848
0. Join our [Community Group](https://www.w3.org/community/wp-login.php?redirect_to=%2Fcommunity%2Fmaps4html%2Fjoin)
49-
1. Fork it!
50-
2. Create your feature branch: `git checkout -b my-new-feature`
51-
3. Commit your changes: `git commit -am 'Add some feature'`
52-
4. Push to the branch: `git push origin my-new-feature`
53-
5. Submit a pull request :D
49+
1. Discuss your proposed changes or requirements in a GitHub issue in maps4html organization
50+
2. Once agreement is reached on your ideas, fork it!
51+
3. Create your feature branch: `git checkout -b my-new-feature`
52+
4. Commit your changes: `git commit -am 'Add some feature'`
53+
5. Push to the branch: `git push origin my-new-feature`
54+
6. Submit a pull request :D
55+
7. Iterate as required.
5456

5557
## History
5658

57-
TODO: Write history
59+
The idea of standardizing maps in the web platform arose from discussions at a
60+
W3C linking spatial data workshop in 2014. A second
61+
online workshop focused on maps for the web was held in 2020, and from the latter,
62+
many detailed requirements for maps on the web were presented. The MapML
63+
polyfill attempts to track and implement these (evolving) requirements, with the
64+
intent being to eventually fully specify and the requirements of web map
65+
users as an update to the HTML Living Standard, implemented by browsers.
5866

5967
## Credits
6068

@@ -63,6 +71,13 @@ Map for HTML Community members and supporters past, present and future.
6371
## License
6472

6573
All Reports in this Repository are licensed by Contributors under the
66-
[W3C Software and Document License](http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document).
74+
[W3C Software and Document License](https://www.w3.org/copyright/software-license-2023/).
6775
Contributions to Specifications are made under the
6876
[W3C CLA](https://www.w3.org/community/about/agreements/cla/).
77+
78+
79+
## Code of Conduct
80+
[Professional conduct](https://www.w3.org/policies/code-of-conduct/) on the part
81+
of our members is required and expected by our
82+
status as a project of the
83+
[W3C Community and Business Groups program](https://www.w3.org/community/about/).

badge.svg

Lines changed: 2 additions & 2 deletions
Loading

how-to-release.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if needed.
66

77
```json
88
{
9-
"name": "@maps4html/web-map-custom-element",
9+
"name": "@maps4html/mapml",
1010
"version": "X.X.X",
1111
...
1212
"files": [
@@ -20,7 +20,7 @@ if needed.
2020
Note that when releasing on npm, you are distributing leaflet, proj4 etc., so
2121
you need to distribute the text of their licenses with the dist folder.
2222

23-
Open the command prompt and cd into the Web-Map-Custom-Element project directory.
23+
Open the command prompt and cd into the MapML.js project directory.
2424

2525
Type in –
2626
```bash
@@ -32,12 +32,12 @@ npm publish --access=public
3232
```
3333
When it publishes successfully you should see:
3434
```bash
35-
+@maps4html/web-map-custom-element@X.X.X
35+
+@maps4html/mapml@X.X.X
3636
```
3737

3838
**GitHub release procedure**
3939

40-
To create a new release on GitHub, visit the [release page](https://github.com/Maps4HTML/Web-Map-Custom-Element/releases),
40+
To create a new release on GitHub, visit the [release page](https://github.com/Maps4HTML/MapML.js/releases),
4141
then click `Draft a new release`.
4242

4343
Enter the new release version in the `Choose a tag` dropdown, fill in the title and description
@@ -48,7 +48,7 @@ if needed, and then publish the release.
4848
Create a personal access token on [GitHub](https://github.com/settings/tokens/new)
4949
and check `write:packages` and `delete:packages`.
5050

51-
Open the command prompt and cd into the Web-Map-Custom-Element project directory. Enter:
51+
Open the command prompt and cd into the MapML.js project directory. Enter:
5252
```bash
5353
npm login --scope=@Maps4HTML --registry=https://npm.pkg.github.com
5454
```
@@ -70,6 +70,6 @@ npm publish
7070
```
7171
When it publishes successfully you should see:
7272
```bash
73-
+@maps4html/web-map-custom-element@X.X.X
73+
+@maps4html/mapml@X.X.X
7474
```
7575
Now `"publishConfig"` can be removed from `package.json`.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@maps4html/web-map-custom-element",
2+
"name": "@maps4html/mapml",
33
"version": "0.13.4",
44
"description": "Custom <mapml-viewer> element suite",
55
"keywords": [
@@ -17,18 +17,18 @@
1717
"author": "Maps for HTML Community Group",
1818
"repository": {
1919
"type": "git",
20-
"url": "git://github.com/Maps4HTML/Web-Map-Custom-Element.git"
20+
"url": "git://github.com/Maps4HTML/MapML.js.git"
2121
},
2222
"website": "http://maps4html.org/Web-Map-Doc/",
2323
"bugs": {
24-
"url": "https://github.com/Maps4HTML/Web-Map-Custom-Element/issues"
24+
"url": "https://github.com/Maps4HTML/MapML.js/issues"
2525
},
2626
"license": "W3C",
2727
"contributors": [
2828
{
2929
"name": "Maps for HTML community",
3030
"email": "[email protected]",
31-
"url": "https://github.com/Maps4HTML/Web-Map-Custom-Element/graphs/contributors"
31+
"url": "https://github.com/Maps4HTML/MapML.js/graphs/contributors"
3232
}
3333
],
3434
"scripts": {

src/mapml-viewer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class MapViewer extends HTMLElement {
186186

187187
this._createMap();
188188

189-
// https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/274
189+
// https://github.com/Maps4HTML/MapML.js/issues/274
190190
this.setAttribute('role', 'application');
191191
this._toggleStatic();
192192

@@ -241,7 +241,7 @@ export class MapViewer extends HTMLElement {
241241
let mapDefaultCSS = document.createElement('style');
242242
mapDefaultCSS.innerHTML =
243243
`:host {` +
244-
`all: initial;` + // Reset properties inheritable from html/body, as some inherited styles may cause unexpected issues with the map element's components (https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/140).
244+
`all: initial;` + // Reset properties inheritable from html/body, as some inherited styles may cause unexpected issues with the map element's components (https://github.com/Maps4HTML/MapML.js/issues/140).
245245
`contain: layout size;` + // Contain layout and size calculations within the map element.
246246
`display: inline-block;` + // This together with dimension properties is required so that Leaflet isn't working with a height=0 box by default.
247247
`height: 150px;` + // Provide a "default object size" (https://github.com/Maps4HTML/HTML-Map-Element/issues/31).
@@ -256,7 +256,7 @@ export class MapViewer extends HTMLElement {
256256
`display: none!important;` +
257257
`}` +
258258
`:host .leaflet-control-container {` +
259-
`visibility: hidden!important;` + // Visibility hack to improve percieved performance (mitigate FOUC) – visibility is unset in mapml.css! (https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/154).
259+
`visibility: hidden!important;` + // Visibility hack to improve percieved performance (mitigate FOUC) – visibility is unset in mapml.css! (https://github.com/Maps4HTML/MapML.js/issues/154).
260260
`}`;
261261

262262
// Hide all (light DOM) children of the map element.

src/mapml.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ summary {
557557

558558
/*
559559
* Visibility hack – mitigates FOUC.
560-
* (https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/154)
560+
* (https://github.com/Maps4HTML/MapML.js/issues/154)
561561
*/
562562

563563
/* Unset `visibility: hidden` (inherited from web-map/mapml-viewer.js). */
@@ -663,7 +663,7 @@ summary {
663663
}
664664

665665
/* Force printers to include background-images of controls for printing.
666-
(https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/294) */
666+
(https://github.com/Maps4HTML/MapML.js/issues/294) */
667667
@media print {
668668
.leaflet-control {
669669
-webkit-print-color-adjust: exact;

src/mapml/features/featureRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export var FeatureRenderer = L.SVG.extend({
88
* Override method of same name from L.SVG, use the this._container property
99
* to set up the role="none presentation" on featureGroupu container,
1010
* per this recommendation:
11-
* https://github.com/Maps4HTML/Web-Map-Custom-Element/pull/471#issuecomment-845192246
11+
* https://github.com/Maps4HTML/MapML.js/pull/471#issuecomment-845192246
1212
* @private overrides ancestor method so that we have a _container to work with
1313
*/
1414
_initContainer: function () {

src/mapml/layers/MapMLLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ export var MapMLLayer = L.LayerGroup.extend({
415415

416416
popup._container.setAttribute('role', 'dialog');
417417
content.setAttribute('tabindex', '-1');
418-
// https://github.com/Maps4HTML/Web-Map-Custom-Element/pull/467#issuecomment-844307818
418+
// https://github.com/Maps4HTML/MapML.js/pull/467#issuecomment-844307818
419419
content.setAttribute('role', 'document');
420420
popup._count = 0; // used for feature pagination
421421

0 commit comments

Comments
 (0)