Skip to content

Commit

Permalink
Show other markers on the map in the edit mode
Browse files Browse the repository at this point in the history
Resolves #482
  • Loading branch information
circus2271 committed Mar 2, 2023
1 parent 829db2e commit bac84b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/module/map/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ define([
// Обработчик переключения режима редактирования
editHandler: function (edit) {
if (edit) {
this.pointHighlightDestroy().pointEditCreate().markerManager.disable();
this.pointHighlightDestroy().pointEditCreate();
} else {
this.pointEditDestroy().pointHighlightCreate().markerManager.enable();
}
Expand Down
10 changes: 10 additions & 0 deletions public/style/map/map.less
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,16 @@
}

.mapContainer.embedded {
&.editing {
.clusterIcon {
display: none !important;
}

.photoIcon, .clusterIconLocal {
.opacity(.4);
}
}

.mapNavigation {
top: -33px;
left: -13px;
Expand Down
2 changes: 1 addition & 1 deletion views/module/map/map.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.mapModuleWrapper(data-bind="with: repository[M!M]")
.mapContainer(data-bind="css: {embedded: embedded}")
.mapContainer(data-bind="css: {embedded: embedded, editing: editing}")
.map

//ko if: embedded
Expand Down

0 comments on commit bac84b2

Please sign in to comment.