Skip to content

Commit

Permalink
- Export MapViewer from module, allowing use of new MapViewer().
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
prushforth committed Sep 26, 2024
1 parent d27daf7 commit 4911f2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 51 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"web-map",
"layer"
],
"main": "mapml-viewer.js",
"module": "mapml-viewer.js",
"main": "mapml.js",
"module": "mapml.js",
"author": "Maps for HTML Community Group",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/mapml/control/AttributionButton.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export var AttributionButton = L.Control.Attribution.extend({
options: {
prefix:
'<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> '
'<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> '
},

onAdd: function (map) {
Expand Down
47 changes: 0 additions & 47 deletions src/mapml/index-web-map.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/mapml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ import '../../dist/proj4-src.js';
import '../../dist/proj4leaflet.js';
import '../../dist/L.Control.Locate.js';
import './GlobalM.js';
import { MapViewer } from '../mapml-viewer';
export { MapViewer } from '../mapml-viewer';

0 comments on commit 4911f2a

Please sign in to comment.