Skip to content

Commit

Permalink
Release 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgryan committed May 9, 2024
1 parent 4b63a3c commit b6e9595
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "leaflet-html",
"type": "module",
"version": "0.2.0",
"version": "0.2.1",
"description": "Leaflet expressed in HTML",
"source": "src/index.js",
"main": "./dist/leaflet-html.js",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import LLatLngBounds from "./l-lat-lng-bounds.js";
import LImageOverlay from "./l-image-overlay.js";
import LVideoOverlay from "./l-video-overlay.js";
import LGeoJSON from "./l-geojson.js";
import LIcon from "./l-icon.js";

const init = (() => {
// Custom elements (order of definition is important)
Expand All @@ -26,6 +27,7 @@ const init = (() => {
customElements.define("l-image-overlay", LImageOverlay);
customElements.define("l-video-overlay", LVideoOverlay);
customElements.define("l-geojson", LGeoJSON);
customElements.define("l-icon", LIcon);
})();

export default init;
4 changes: 4 additions & 0 deletions src/l-marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class LMarker extends HTMLElement {
constructor() {
super();
this.layer = null;
this.addEventListener("icon:add", (ev) => {
ev.stopPropagation();
this.layer.setIcon(ev.detail.icon);
})
}

connectedCallback() {
Expand Down

0 comments on commit b6e9595

Please sign in to comment.