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

Lines changed: 42 additions & 42 deletions

.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

0 commit comments

Comments
 (0)