-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update 'web-map-custom-element' namespace to -> mapml (#146)
- Loading branch information
Showing
19 changed files
with
46 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,14 @@ import TabItem from '@theme/TabItem'; | |
<TabItem value="jsDelivr" label="jsDelivr"> | ||
|
||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/web-map-custom-element/dist/mapml-viewer.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js"></script> | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="unpkg" label="unpkg"> | ||
|
||
```html | ||
<script type="module" src="https://unpkg.com/@maps4html/web-map-custom-element/dist/mapml-viewer.js"></script> | ||
<script type="module" src="https://unpkg.com/@maps4html/mapml/dist/mapml-viewer.js"></script> | ||
``` | ||
|
||
</TabItem> | ||
|
@@ -36,23 +36,23 @@ To install the `<mapml-viewer>` in your web site project, you use the Node Packa | |
```bash | ||
$ cd ../test | ||
|
||
$ npm install @maps4html/web-map-custom-element | ||
$ npm install @maps4html/mapml | ||
|
||
+ @maps4html/[email protected] | ||
+ @maps4html/mapml | ||
added 1 package from 2 contributors and audited 1 package in 1.605s | ||
found 0 vulnerabilities | ||
|
||
$ | ||
``` | ||
|
||
Once installation is complete, you will have a node_modules/@maps4html/web-map-custom-element subdirectory, containing a `dist` folder with the required JavaScript, CSS and HTML files to support the `<mapml-viewer>`. | ||
Once installation is complete, you will have a node_modules/@maps4html/mapml subdirectory, containing a `dist` folder with the required JavaScript, CSS and HTML files to support the `<mapml-viewer>`. | ||
|
||
#### Add the Script to a Web page | ||
|
||
Add the following to the `<head>` of your HTML code: | ||
|
||
```html | ||
<script type="module" src="./node_modules/@maps4html/web-map-custom-element/dist/mapml-viewer.js"></script> | ||
<script type="module" src="./node_modules/@maps4html/mapml/dist/mapml-viewer.js"></script> | ||
``` | ||
|
||
You can now use `<mapml-viewer>`, `<layer->` and the other elements described here on your web pages. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,14 @@ import TabItem from '@theme/TabItem'; | |
<TabItem value="jsDelivr" label="jsDelivr"> | ||
|
||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/web-map-custom-element/dist/mapml-viewer.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js"></script> | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="unpkg" label="unpkg"> | ||
|
||
```html | ||
<script type="module" src="https://unpkg.com/@maps4html/web-map-custom-element/dist/mapml-viewer.js"></script> | ||
<script type="module" src="https://unpkg.com/@maps4html/mapml/dist/mapml-viewer.js"></script> | ||
``` | ||
|
||
</TabItem> | ||
|
@@ -36,23 +36,23 @@ Pour installer les éléments `<mapml-viewer>` dans votre projet de site Web, vo | |
```bash | ||
$ cd ../test | ||
|
||
$ npm install @maps4html/web-map-custom-element | ||
$ npm install @maps4html/mapml | ||
|
||
+ @maps4html/[email protected] | ||
+ @maps4html/mapml | ||
added 1 package from 2 contributors and audited 1 package in 1.605s | ||
found 0 vulnerabilities | ||
|
||
$ | ||
``` | ||
|
||
Une fois l’installation terminée, le sous-répertoire node_modules/@maps4html/web-map-custom-element sera créé, lequel contient un dossier `dist` avec les fichiers JavaScript, CSS et HTML requis pour prendre en charge les éléments `<mapml-viewer>`. | ||
Une fois l’installation terminée, le sous-répertoire node_modules/@maps4html/mapml sera créé, lequel contient un dossier `dist` avec les fichiers JavaScript, CSS et HTML requis pour prendre en charge les éléments `<mapml-viewer>`. | ||
|
||
#### Ajouter le script à une page Web | ||
|
||
Ajoutez ce qui suit à l’élément `<head>` de votre code HTML : | ||
|
||
```html | ||
<script type="module" src="./node_modules/@maps4html/web-map-custom-element/dist/mapml-viewer.js"></script> | ||
<script type="module" src="./node_modules/@maps4html/mapml/dist/mapml-viewer.js"></script> | ||
``` | ||
|
||
Vous pouvez maintenant utiliser dans vos pages Web les éléments `<mapml-viewer>` et `<layer->` ainsi que les autres éléments décrits dans le présent document. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters