Skip to content

Commit a4dcfe0

Browse files
committed
Rename Web-Map-Custom-Element -> MapML.js in files
1 parent 358fca7 commit a4dcfe0

21 files changed

+42
-42
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Web standard.
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,7 +43,7 @@ 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)
4949
1. Fork it!

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": "public-maps4html@w3.org",
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

src/web-map.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ export class WebMap extends HTMLMapElement {
244244
mapDefaultCSS.id = 'web-map-default-style';
245245
mapDefaultCSS.innerHTML =
246246
`[is="web-map"] {` +
247-
`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).
247+
`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).
248248
`contain: layout size;` + // Contain layout and size calculations within the map element.
249249
`display: inline-block;` + // This together with dimension properties is required so that Leaflet isn't working with a height=0 box by default.
250250
`height: 150px;` + // Provide a "default object size" (https://github.com/Maps4HTML/HTML-Map-Element/issues/31).
251251
`width: 300px;` +
252252
`border-width: 2px;` + // Set a default border for contrast, similar to UA default for iframes.
253253
`border-style: inset;` +
254-
`box-sizing: inherit;` + // https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/350#issuecomment-888361985
254+
`box-sizing: inherit;` + // https://github.com/Maps4HTML/MapML.js/issues/350#issuecomment-888361985
255255
`}` +
256256
`[is="web-map"][frameborder="0"] {` +
257257
`border-width: 0;` +
@@ -266,7 +266,7 @@ export class WebMap extends HTMLMapElement {
266266
let shadowRootCSS = document.createElement('style');
267267
shadowRootCSS.innerHTML =
268268
`:host .leaflet-control-container {` +
269-
`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).
269+
`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).
270270
`}`;
271271

272272
// Hide all (light DOM) children of the map element except for the
@@ -336,13 +336,13 @@ export class WebMap extends HTMLMapElement {
336336

337337
// undisplay the img in the image map, because it's not needed now.
338338
// gives a slight FOUC, unless:
339-
// 1) the img is pre-styled (https://github.com/Maps4HTML/Web-Map-Custom-Element/blob/80a4a4e372d2ef61bb7cad6a111e17e396b8e908/index-map-area.html#L35)
339+
// 1) the img is pre-styled (https://github.com/Maps4HTML/MapML.js/blob/80a4a4e372d2ef61bb7cad6a111e17e396b8e908/index-map-area.html#L35)
340340
// 2) placed after the map element
341341
if (this.poster) {
342342
this.poster.setAttribute('hidden', '');
343343
}
344344

345-
// https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/274
345+
// https://github.com/Maps4HTML/MapML.js/issues/274
346346
this.setAttribute('role', 'application');
347347
// Make the Leaflet container element programmatically identifiable
348348
// (https://github.com/Leaflet/Leaflet/issues/7193).

test/e2e/core/history.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.describe('History test', () => {
1515
await context.close();
1616
});
1717

18-
//https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/550
18+
//https://github.com/Maps4HTML/MapML.js/issues/550
1919
test('History does not get added to when trying to zoom out at min zoom level', async () => {
2020
await page.keyboard.press('Tab');
2121
await page.keyboard.press('Minus');

test/e2e/core/mapSpan.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test.describe('<map-span> test ', () => {
4141
expect(index).toEqual(-1);
4242
});
4343

44-
//https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/559#issuecomment-959805896
44+
//https://github.com/Maps4HTML/MapML.js/issues/559#issuecomment-959805896
4545
test('White space parsing for map-coordinates', async () => {
4646
await page.waitForTimeout(1000);
4747
const feature = await page.$eval(

test/e2e/elements/map-extent/map-extent-checked-ordering.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test.describe('map-extent checked order tests', () => {
1111
await page.goto('map-extent-checked.html');
1212
});
1313
test('map-extent layer control order correct when cycling checked state', async () => {
14-
// Fixed #935 https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/935
14+
// Fixed #935 https://github.com/Maps4HTML/MapML.js/issues/935
1515
/*
1616
Go to this map map-extent-checked.html
1717
@@ -87,6 +87,6 @@ The imagery layer <map-extent> draws on top of the states layer.
8787
// ensure that
8888
// a) render order/z-index is correct
8989
// b) render order is reflected in layer control order as well
90-
// see https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/956
90+
// see https://github.com/Maps4HTML/MapML.js/issues/956
9191
});
9292
});

test/e2e/elements/map-extent/map-extent.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ test.describe('map-extent tests', () => {
425425
layer.appendChild(me);
426426
});
427427

428-
// see https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/921
428+
// see https://github.com/Maps4HTML/MapML.js/issues/921
429429
mapExtent = page.getByTestId('ext5');
430430

431431
// get the extent of map-extent

test/e2e/layers/multipleQueryExtents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<layer- label="Multiple Query Extents" checked>
2727
<!-- the non-query extent (in this case a TemplatedTileLayer) is necessary
2828
to have the layer not disabled in the layer control -->
29-
<!-- see: https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/647#issue-1096626052 -->
29+
<!-- see: https://github.com/Maps4HTML/MapML.js/issues/647#issue-1096626052 -->
3030
<map-extent units="CBMTILE" checked hidden>
3131
<map-input name="z" type="zoom" value="17" min="0" max="17"></map-input>
3232
<map-input name="y" type="location" units="tilematrix" axis="row" min="29750" max="34475"></map-input>

test/e2e/layers/step/imageStep.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test.describe('Templated image layer with step', () => {
6868
The resetting mentioned below would make it look like the map zoomed out before panning since the
6969
scaled layer's css scale transform would be removed and there would be enough time to see it before the new
7070
layer is added.
71-
https://github.com/Maps4HTML/Web-Map-Custom-Element/commit/8df7c993276e719bb30c4f55a8966289d4c918b7
71+
https://github.com/Maps4HTML/MapML.js/commit/8df7c993276e719bb30c4f55a8966289d4c918b7
7272
*/
7373
test('Overlay to remove does not reset its transform on shift pan when on a scaled layer', async () => {
7474
await page.keyboard.press('Shift+ArrowUp');

test/e2e/layers/step/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ exports.test = (
7676
await zoomIn(z5, urlBase, u5);
7777
});
7878

79-
//https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/666
79+
//https://github.com/Maps4HTML/MapML.js/issues/666
8080
if (native) {
8181
test('No requests out of native zoom bounds', async () => {
8282
await zoomIn(0, '', '');

test/e2e/layers/templatedTileLayer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test.describe('Playwright mapMLTemplatedTile Layer Tests', () => {
5656
});
5757

5858
test('Templated tile layer works without <map-input> for zoom level', async () => {
59-
// tests fix for https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/669
59+
// tests fix for https://github.com/Maps4HTML/MapML.js/issues/669
6060
await page.hover(
6161
'div > div.leaflet-control-container > div.leaflet-top.leaflet-right > div'
6262
);

w3c-tag-advice-for-polyfill-authors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ conforms to the W3C <abbr title="Technical Architecture Group">TAG</abbr>'s
3333
<ul><li>- [x] </li></ul>
3434
</td>
3535
<td>
36-
<a href="https://www.npmjs.com/package/@maps4html/web-map-custom-element">Published to npm</a>
36+
<a href="https://www.npmjs.com/package/@maps4html/mapml">Published to npm</a>
3737
and
38-
<a href="https://unpkg.com/@maps4html/web-map-custom-element@latest/dist/mapml-viewer.js">hosted on the UNPKG CDN</a>
38+
<a href="https://unpkg.com/@maps4html/mapml@latest/dist/mapml-viewer.js">hosted on the UNPKG CDN</a>
3939
</td>
4040
</tr>
4141
<tr>
@@ -62,7 +62,7 @@ conforms to the W3C <abbr title="Technical Architecture Group">TAG</abbr>'s
6262
</td>
6363
<td>
6464
On the backlog of the
65-
<a href="https://github.com/Maps4HTML/Web-Map-Custom-Element/projects/2#card-43799737">Road Map</a> project
65+
<a href="https://github.com/Maps4HTML/MapML.js/projects/2#card-43799737">Road Map</a> project
6666
</td>
6767
</tr>
6868
<tr>

w3c-tag-guidelines-web-compatible-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ conforms to the W3C <abbr title="Technical Architecture Group">TAG</abbr>'s
104104
</td>
105105
<td>
106106
See the
107-
<a href="https://github.com/Maps4HTML/Web-Map-Custom-Element/issues?q=label%3A%22basic+styling%22">basic styling</a>
107+
<a href="https://github.com/Maps4HTML/MapML.js/issues?q=label%3A%22basic+styling%22">basic styling</a>
108108
label for relevant issues/PRs
109109
</td>
110110
</tr>

0 commit comments

Comments
 (0)