Skip to content

Commit

Permalink
merge-151123-040324
Browse files Browse the repository at this point in the history
  • Loading branch information
DaryaNeko committed Mar 4, 2024
1 parent caf7044 commit 5398fc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/mixins/layer-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export default Ember.Mixin.create({
html = '<div style="' + style + '">' + text + '</div>';

let paneLabel = labelsLayerZoom._paneLabel;
let optionsMarker = this._optionsMarker(latlng, className, html, iconWidth, iconHeight, anchor);
let optionsMarker = this._optionsMarker(latlng, className, html, [iconWidth, iconHeight], anchor);

// возможно тут тоже надо будет сделать L.featureGroup()
label = this._createLabelMarker(layer, optionsMarker, paneLabel);
Expand Down Expand Up @@ -521,7 +521,7 @@ export default Ember.Mixin.create({
let centroidN = geojsonWriter.write(centroidNJsts);
latlng = L.latLng(centroidN.coordinates[1], centroidN.coordinates[0]);
html = '<div style="' + style + '">' + text + '</div>';
let optionsMarker = this._optionsMarker(latlng, className, html, iconWidth, iconHeight, anchor);
let optionsMarker = this._optionsMarker(latlng, className, html, [iconWidth, iconHeight], anchor);
let labelN = this._createLabelMarker(layer, optionsMarker, labelsLayerZoom._paneLabel);
label.addLayer(labelN);
}
Expand Down Expand Up @@ -580,7 +580,7 @@ export default Ember.Mixin.create({
iconWidth = 12;
iconHeight = 12;
html = Ember.$(layer._svgConteiner).html();
let optionsMarker = this._optionsMarker(latlng, className, html, iconWidth, iconHeight, anchor);
let optionsMarker = this._optionsMarker(latlng, className, html, [iconWidth, iconHeight], anchor);

if (multi) {
let labelN = this._createLabelMarker(layer, optionsMarker, labelsLayerZoom._paneLabel);
Expand All @@ -599,7 +599,7 @@ export default Ember.Mixin.create({
iconHeight = 12;
html = Ember.$(layer._svgConteiner).html();

let optionsMarker = this._optionsMarker(latlng, className, html, iconWidth, iconHeight, anchor);
let optionsMarker = this._optionsMarker(latlng, className, html, [iconWidth, iconHeight], anchor);
label = this._createLabelMarker(layer, optionsMarker, labelsLayerZoom._paneLabel);
}
}
Expand Down

0 comments on commit 5398fc9

Please sign in to comment.