Skip to content

Commit

Permalink
Merge pull request #55 from david-storm/main
Browse files Browse the repository at this point in the history
fix: change path for icon in location map lb
  • Loading branch information
podarok authored Sep 5, 2023
2 parents f4794e6 + 5e2e7f9 commit 71088d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/openy_map_lb/assets/js/map.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/openy_map_lb/assets/js/map.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions modules/openy_map_lb/assets/src/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
loc.point = L.latLng(loc.lat, loc.lng);
const html = `<div class="marker_tooltip">${loc.markup}</div>`;
const icon_options = {
iconUrl: this.origin + '/' + loc.icon,
iconUrl: window.location.origin + '/' + loc.icon,
iconSize: [32, 42],
iconAnchor: [16, 38],
popupAnchor: [0, -36]
Expand Down Expand Up @@ -1219,7 +1219,7 @@
// Show tags filter as default checkboxes.
const html = Object.entries(this.state.getTags()).reduce((acc, [tag, value]) => {
const checked = ($.inArray(tag, this.state.getTagsFilter()) >= 0);
let tagHtml = Drupal.theme('openyMapControlCheckbox', checked, tag,`${this.origin}/${value.marker_icon}`);
let tagHtml = Drupal.theme('openyMapControlCheckbox', checked, tag,`${window.location.origin}/${value.marker_icon}`);
acc += tagHtml;
return acc;
}, '');
Expand Down
2 changes: 1 addition & 1 deletion modules/openy_map_lb/openy_map_lb.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openy_map:
version: 1.0.14
version: 1.0.15
js:
assets/js/map.js: { preprocess: true }
css:
Expand Down

0 comments on commit 71088d8

Please sign in to comment.