Commit 5f2bfd93de79d8b98de09dda7c1712fb42706a20

Authored by Igor Kulikov
1 parent 693b5847

Fix deprecated maps settings.

... ... @@ -403,7 +403,7 @@ export default class TbMapWidget {
403 403 if (image && (!location.settings.currentImage || !angular.equals(location.settings.currentImage, image))) {
404 404 location.settings.currentImage = image;
405 405 }
406   - location.marker = tbMap.map.createMarker(markerLocation, location.settings,
  406 + location.marker = tbMap.map.createMarker(markerLocation, location.dsIndex, location.settings,
407 407 function() {
408 408 tbMap.callbacks.onLocationClick(location);
409 409 }
... ... @@ -563,8 +563,9 @@ export default class TbMapWidget {
563 563 var tooltips = this.map.getTooltips();
564 564 for (var t=0; t < tooltips.length; t++) {
565 565 var tooltip = tooltips[t];
566   - var text = tooltip.pattern;
567   - var replaceInfo = tooltip.replaceInfo;
  566 + var settings = tooltip.locationSettings;
  567 + var text = settings.tooltipPattern;
  568 + var replaceInfo = settings.tooltipReplaceInfo;
568 569 for (var v = 0; v < replaceInfo.variables.length; v++) {
569 570 var variableInfo = replaceInfo.variables[v];
570 571 var txtVal = '';
... ...