Skip to content

Commit

Permalink
Add position marker and hide map element before loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cemag44 committed Apr 29, 2024
1 parent ce6c4c6 commit f81f847
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
17 changes: 13 additions & 4 deletions view/frontend/web/css/source/_module.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
}

.catalog-product-stores-availability-content {
display: none;

.fulltext-search-wrapper {
.form {
display: flex;
Expand All @@ -44,10 +46,8 @@

.store-view-map .map {
max-width: 100%;
height: 400px;
background: #666;
height: 0;
z-index: 1;
float: left;
display: inline-block;
margin-bottom: 20px;
width: 100%;
Expand All @@ -60,7 +60,6 @@
margin: 10px 0 0;
padding: 0;
max-height: 215px;
min-height: 215px;
overflow-y: scroll;

li.result-item {
Expand Down Expand Up @@ -115,6 +114,16 @@
.catalog-product-retailer-availability .showavailability {
cursor: pointer;
}

.modal-popup {
.catalog-product-stores-availability-content {
display: block;
}

.store-view-map .map {
height: 400px;
}
}
}

//
Expand Down
1 change: 1 addition & 0 deletions view/frontend/web/js/retailer/product-availability.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ define([
registry.get(this.name + '.map', function (map) {
this.map = map;
this.map.applyPosition(position);
this.map.addMarkerWithMyPosition(position)
}.bind(this));

this.updateDisplayedOffers();
Expand Down

0 comments on commit f81f847

Please sign in to comment.