Skip to content

Commit

Permalink
Rename output bundle from mapml-viewer to mapml.js for consistency
Browse files Browse the repository at this point in the history
with project name
  • Loading branch information
prushforth committed Sep 24, 2024
1 parent d21452d commit 2e9a660
Show file tree
Hide file tree
Showing 104 changed files with 108 additions and 108 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function(grunt) {
},
dist: {
files: {
'dist/mapml-viewer.js': ['<%= rollup.main.dest %>']
'dist/mapml.js': ['<%= rollup.main.dest %>']
}
}
},
Expand Down Expand Up @@ -109,8 +109,8 @@ module.exports = function(grunt) {
return Diff.applyPatch(content, patch);
} else if (srcpath.includes('index.html')) {
console.log('MODIFYING: ', srcpath);
var pathToModuleRE = /dist\/mapml-viewer\.js/gi;
return content.replace(pathToModuleRE,"./mapml-viewer.js");
var pathToModuleRE = /dist\/mapml\.js/gi;
return content.replace(pathToModuleRE,"./mapml.js");
} else {
return content;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ module.exports = function(grunt) {
},
clean: {
dist: ['dist'],
tidyup: ['dist/leaflet-src.js','dist/proj4-src.js','dist/proj4leaflet.js','dist/L.Control.Locate.js','dist/mapmlviewer.js','dist/webmap.js'],
tidyup: ['dist/leaflet-src.js','dist/proj4-src.js','dist/proj4leaflet.js','dist/L.Control.Locate.js','dist/mapmlviewer.js'],
experiments: {
options: {force: true},
src: ['../experiments/dist']
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>index-map.html</title>
<script type="module" src="dist/mapml-viewer.js"></script>
<script type="module" src="dist/mapml.js"></script>
<style>
html,
body {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/api/domApi-HTMLLayerElement.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>domApi-HTMLLayerElement.html</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>
<body>
<template>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/api/domApi-mapml-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>DOM API Test page</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>
<body>
</body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/api/domApi-web-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>DOM API Test page</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>
<body>
</body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/api/events/map-projectionchange.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>map-projectionchange event</title>
<!-- the layer in this map should continue to be visible when you change
the viewer projection from OSMTILE to CBMTILE. -->
<script type="module" src="/mapml-viewer.js"></script>
<script type="module" src="/mapml.js"></script>
</head>
<body>
<mapml-viewer zoom="2" lon="-75.703611" lat="45.411105" width="500" height="500" controls projection="OSMTILE">
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/api/locateApi.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>locateApi.html</title>
<script type="module" src="./mapml-viewer.js"></script>
<script type="module" src="./mapml.js"></script>
<style>
html,
body {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/ArrowKeyNavContextMenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>ArrowKeyNavContextMenu.html</title>
<script type="module" src="./mapml-viewer.js"></script>
<script type="module" src="./mapml.js"></script>
<style>
html,
body {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/axisInferring.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Inferring Axes</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/debugMode.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Debug mode tests</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/drag.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Drag Test</title>
<meta charset="UTF-8" >
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/dragDrop.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Drag and Drop Layers</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/dragDropMap.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<title>Drag and Drop Layers</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/featureIndexOverlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
options.innerHTML = '{"featureIndexOverlayOption":true}';
document.head.appendChild(options);
</script>
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/featureLinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Feature Link Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/featureNavigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Tabbed Feature Navigation Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/focusControls.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Query Popup Navigation test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/fullscreenControlMapmlViewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Fullscreen Control Test mapml-viewer.js</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/fullscreenControlWebMap.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Fullscreen Control Test - web-map.js</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/layerContextMenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Layer Contextmenu Test</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/linkTypes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Feature Link Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/mapContextMenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>mapContextMenu.html</title>
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>
<body>
<mapml-viewer width="640" height="480" projection="CBMTILE" zoom="2" lat="45" lon="-90" controls>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/mapElement.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Basic Map</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/mapFeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>HTMLFeatureElement Test!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/mapFeature1.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>map-feature Event tests</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/mapSpan.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>MapML Vector Tiles</title>
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<link rel="stylesheet" href="mapSpan.css">
<style>
mapml-viewer:defined {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/metaDefault.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Meta Default Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
.transparency {
opacity: 0.2;
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/core/mismatchedLayerWithMap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test.describe('Playwright Mismatched Layers Test', () => {
<head>
<title>index-map.html</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {height: 100%} body,map {height: inherit} * {margin: 0;padding: 0;}
</style>
Expand Down Expand Up @@ -58,7 +58,7 @@ test.describe('Playwright Mismatched Layers Test', () => {
<head>
<title>index-map.html</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {height: 100%} body,map {height: inherit} * {margin: 0;padding: 0;}
</style>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/missingMetaParameters.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Missing Meta Parameters Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/popupTabNavigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Popup Tab Navigation Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/projectionChange.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Change Projection Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/projectionDefault.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<title>Default Projection</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/reticle.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Reticle Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/styleParsing.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Style Parsing Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
[is=web-map] {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/tms.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Painting Example</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {height: 100%} body {height: inherit} * {margin: 0;padding: 0;}
</style>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/core/zoomChangeProjection.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Zoom Projection Change Test</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {height: 100%} body,map {height: inherit} * {margin: 0;padding: 0;}
</style>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/elements/layer-/layer-.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>&lt;layer-&gt; test</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/elements/layer-/layer-extent.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>&lt;layer-&gt; test</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/elements/map-a/map-a.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Remote layer with map-link rel=features</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/elements/map-extent/handleChange-bug.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>map-extent mutation observer bug #952</title>
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html,
body {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/elements/map-extent/map-extent-api-web-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Basic Map</title>
<meta charset="UTF-8">
<script type="module" src="mapml-viewer.js"></script>
<script type="module" src="mapml.js"></script>
<style>
html {
height: 100%
Expand Down
Loading

0 comments on commit 2e9a660

Please sign in to comment.