Skip to content

Commit 4911f2a

Browse files
committed
- Export MapViewer from module, allowing use of new MapViewer().
- Fix broken favicon.ico link in attribution. - Remove unused rollup file. - Update name of primary module files for esm and cjs(?) module systems in package.json, to mapml.js.
1 parent d27daf7 commit 4911f2a

File tree

4 files changed

+4
-51
lines changed

4 files changed

+4
-51
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"web-map",
1313
"layer"
1414
],
15-
"main": "mapml-viewer.js",
16-
"module": "mapml-viewer.js",
15+
"main": "mapml.js",
16+
"module": "mapml.js",
1717
"author": "Maps for HTML Community Group",
1818
"repository": {
1919
"type": "git",

src/mapml/control/AttributionButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export var AttributionButton = L.Control.Attribution.extend({
22
options: {
33
prefix:
4-
'<img src="https://www.w3.org/community/src/templates/wordpress/StoryTeller/favicon.ico" style="position: relative; top: 5px" alt="W3C Community and Business Groups logo"> <a href="https://www.w3.org/community/maps4html/">Maps for HTML Community Group</a> | <img src="data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTIiIGhlaWdodD0iOCI+PHBhdGggZmlsbD0iIzRDN0JFMSIgZD0iTTAgMGgxMnY0SDB6Ii8+PHBhdGggZmlsbD0iI0ZGRDUwMCIgZD0iTTAgNGgxMnYzSDB6Ii8+PHBhdGggZmlsbD0iI0UwQkMwMCIgZD0iTTAgN2gxMnYxSDB6Ii8+PC9zdmc+" style="padding-right: 0.3em;" alt="Slava Ukraini"> <a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a> '
4+
'<img src="https://www.w3.org/community/wp-content/themes/StoryTeller/favicon.ico" style="position: relative; top: 5px" alt="W3C Community and Business Groups logo"> <a href="https://www.w3.org/community/maps4html/">Maps for HTML Community Group</a> | <img src="data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTIiIGhlaWdodD0iOCI+PHBhdGggZmlsbD0iIzRDN0JFMSIgZD0iTTAgMGgxMnY0SDB6Ii8+PHBhdGggZmlsbD0iI0ZGRDUwMCIgZD0iTTAgNGgxMnYzSDB6Ii8+PHBhdGggZmlsbD0iI0UwQkMwMCIgZD0iTTAgN2gxMnYxSDB6Ii8+PC9zdmc+" style="padding-right: 0.3em;" alt="Slava Ukraini"> <a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a> '
55
},
66

77
onAdd: function (map) {

src/mapml/index-web-map.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/mapml/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ import '../../dist/proj4-src.js';
4444
import '../../dist/proj4leaflet.js';
4545
import '../../dist/L.Control.Locate.js';
4646
import './GlobalM.js';
47-
import { MapViewer } from '../mapml-viewer';
47+
export { MapViewer } from '../mapml-viewer';

0 commit comments

Comments
 (0)