Skip to content

Commit

Permalink
Rename mapml-viewer to mapml.js for consistency with project name
Browse files Browse the repository at this point in the history
  • Loading branch information
prushfor authored and prushforth committed Sep 24, 2024
1 parent 8f19bd8 commit 4778f53
Show file tree
Hide file tree
Showing 35 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion docs/api/geojson-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The **GeoJSON API** is provided as a library to convert GeoJSON to and from MapM
<!doctype html>
<html lang="en">
<head>
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<script src="lib/geojson.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/mapml-viewer-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ let output = map.geojson2mapml(json);
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Example Custom Projection</title>
<script type="module" src="web-map/mapml-viewer.js"></script>
<script type="module" src="web-map/mapml.js"></script>
<script type="module">
let customProjectionDefinition = `{
"projection": "ATLAS_POLAR_MAP",
Expand Down
2 changes: 1 addition & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $ cat > index.html << EOF
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>index.html</title>
<script type="module" src="dist/mapml-viewer.js"></script>
<script type="module" src="dist/mapml.js"></script>
<style>
html,body {height: 100%;}
* {padding: 0;margin: 0;padding: 0;}
Expand Down
2 changes: 1 addition & 1 deletion docs/elements/mapml-viewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `<mapml-viewer>` element is the main element you can use to put a custom Web
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>A Simple Web Map[tm]</title>
<script type="module" src="web-map/mapml-viewer.js"></script>
<script type="module" src="web-map/mapml.js"></script>
<style>
html, body {
height: 100%; /* These styles are required if you wish to use a % based
Expand Down
2 changes: 1 addition & 1 deletion docs/elements/web-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The following markup may work on Chrome and Firefox, although it may take some f
</map>
```

To experiment with the `web-map` and `map-area` custom elements, you should link your `<script type="module" src="mapml-viewer.js"></script>` to the `mapml-viewer.js` file that is built by the MapML.js build process.
To experiment with the `web-map` and `map-area` custom elements, you should link your `<script type="module" src="mapml.js"></script>` to the `mapml.js` file that is built by the MapML.js build process.

In theory, if you take steps to provide the fallback markup, a normal (progressive) Web map experience will be had by most users, while those using an older browser or perhaps even Safari may get the "fallback" client side image map experience.

Expand Down
6 changes: 3 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js"></script>
```

</TabItem>
<TabItem value="unpkg" label="unpkg">

```html
<script type="module" src="https://unpkg.com/@maps4html/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="https://unpkg.com/@maps4html/mapml/dist/mapml.js"></script>
```

</TabItem>
Expand Down Expand Up @@ -52,7 +52,7 @@ Once installation is complete, you will have a node_modules/@maps4html/mapml sub
Add the following to the `<head>` of your HTML code:

```html
<script type="module" src="./node_modules/@maps4html/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="./node_modules/@maps4html/mapml/dist/mapml.js"></script>
```

You can now use `<mapml-viewer>`, `<layer->` and the other elements described here on your web pages.
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ You have learned how to include resources like images in your web page, and now
<head>
<title>My First Web Map</title>
// highlight-next-line
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js" crossorigin></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js" crossorigin></script>
</head>
<body>
<p>Web pages are easy-peasy</p>
Expand All @@ -82,7 +82,7 @@ The next step in our lesson is to remove the image and replace it with a map, us
<html>
<head>
<title>My First Web Map</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js" crossorigin></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js" crossorigin></script>
</head>
<body>
<p>Web <s>pages</s> maps are easy-peasy</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Learn how to quickly create your first map.
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Getting Started</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js"></script>
</head>
<body>
<mapml-viewer width="800" height="400" projection="OSMTILE" zoom="1" lat="60.0" lon="-100.0" controls>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ L’**interface de programmation d’applications (API) GeoJSON** est fournie so
<!doctype html>
<html lang="en">
<head>
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<script src="lib/geojson.js"></script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ let output = map.geojson2mapml(json);
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Exemple d'un projection personnalisée</title>
<script type="module" src="web-map/mapml-viewer.js"></script>
<script type="module" src="web-map/mapml.js"></script>
<script type="module">
let customProjectionDefinition = `{
"projection": "ATLAS_POLAR_MAP",
Expand Down
2 changes: 1 addition & 1 deletion i18n/fr/docusaurus-plugin-content-docs/current/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $ cat > index.html << EOF
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>index.html</title>
<script type="module" src="dist/mapml-viewer.js"></script>
<script type="module" src="dist/mapml.js"></script>
<style>
html,body {height: 100%;}
* {padding: 0;margin: 0;padding: 0;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ L’élément `<mapml-viewer>` est le principal élément à utiliser pour ajout
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Carte Web simple [carte topographique]</title>
<script type="module" src="web-map/mapml-viewer.js"></script>
<script type="module" src="web-map/mapml.js"></script>
<style>
html, body {
height: 100%; /* Ces styles sont nécessaires si vous souhaitez utiliser une valeur de hauteur basée sur un pourcentage pour l’élément « mapml-viewer ». */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Le balisage suivant pourrait fonctionner dans Chrome et Firefox, mais il pourrai
</map>
```

Pour expérimenter les éléments personnalisés `web-map` et `map-area`, vous devriez lier votre `<script type="module" src="mapml-viewer.js"></script>` au fichier `mapml-viewer.js` créé par le processus de génération des éléments personnalisés de cartes Web / MapML.js.
Pour expérimenter les éléments personnalisés `web-map` et `map-area`, vous devriez lier votre `<script type="module" src="mapml.js"></script>` au fichier `mapml.js` créé par le processus de génération des éléments personnalisés de cartes Web / MapML.js.

En théorie, si vous prenez des mesures pour fournir un balisage alternatif, la plupart des utilisateurs auront une expérience normale (progressive) avec la carte Web, tandis que ceux qui utilisent un ancien navigateur ou même Safari pourraient obtenir une expérience inverse avec l’image cliquable côté client.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js"></script>
```

</TabItem>
<TabItem value="unpkg" label="unpkg">

```html
<script type="module" src="https://unpkg.com/@maps4html/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="https://unpkg.com/@maps4html/mapml/dist/mapml.js"></script>
```

</TabItem>
Expand Down Expand Up @@ -52,7 +52,7 @@ Une fois l’installation terminée, le sous-répertoire node_modules/@maps4html
Ajoutez ce qui suit à l’élément `<head>` de votre code HTML :

```html
<script type="module" src="./node_modules/@maps4html/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="./node_modules/@maps4html/mapml/dist/mapml.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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Maintenant que vous avez appris comment inclure des ressources telles que des im
<head>
<title>Ma première Carte Web</title>
// highlight-next-line
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js" crossorigin></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js" crossorigin></script>
</head>
<body>
<p>Les pages Web: c'est si facile</p>
Expand All @@ -82,7 +82,7 @@ La prochaine étape est de supprimer et remplacer l'image par une carte, en util
<html>
<head>
<title>Ma première Carte Web</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js" crossorigin></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js" crossorigin></script>
</head>
<body>
<p>Les <s>pages</s> cartes Web : c'est si facile</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Apprenez à créer rapidement votre première carte.
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Getting Started</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js"></script>
</head>
<body>
<mapml-viewer width="800" height="400" projection="OSMTILE" zoom="1" lat="60.0" lon="-100.0" controls>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Feature({ title, description }) {

function Home() {
const mapUrl = "./demo/data/osmtile-cbmt.mapml"
const mapiframe = `<script type="module" src="dist/mapml-viewer.js"></script>
const mapiframe = `<script type="module" src="dist/mapml.js"></script>
<style>
html,
body {
Expand Down
2 changes: 1 addition & 1 deletion static/demo/Tutorial/Getting Started/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<head>
<title>My First Web Map</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml-viewer.js" crossorigin></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@maps4html/mapml/dist/mapml.js" crossorigin></script>
</head>
<body>
<p>Web <s>pages</s> maps are easy-peasy</p>
Expand Down
2 changes: 1 addition & 1 deletion static/demo/extent-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/layer-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-a-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-caption-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-datalist-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-feature-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-geometry-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-input-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-link-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-meta-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-properties-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-select-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-span-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/map-style-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/mapml-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/mapml-viewer-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down
2 changes: 1 addition & 1 deletion static/demo/sandbox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sandbox</title>
<script type="module" src="../../dist/mapml-viewer.js"></script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../sandbox.css"/>

<link rel="stylesheet" href="../codemirror-5.64.0/lib/codemirror.css">
Expand Down

0 comments on commit 4778f53

Please sign in to comment.