Skip to content
Snippets Groups Projects
Commit c05cb51f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

map field name refactoried to indicate no direct access

parent c69c199c
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -411,7 +411,7 @@ AbstractCustomMap.prototype.turnOnDrawing = function() {
zIndex : 1
}
});
this._drawingManager.setMap(this.map);
this._drawingManager.setMap(this.getGoogleMap());
this._drawingManager.setDrawingMode(google.maps.drawing.OverlayType.POLYGON);
google.maps.event.addListener(this._drawingManager, 'overlaycomplete', function(e) {
......@@ -940,7 +940,7 @@ AbstractCustomMap.prototype.getSelectedLayoutOverlays = function() {
* @returns google.maps.map object used to representing data
*/
AbstractCustomMap.prototype.getGoogleMap = function() {
return this.map;
return this._map;
};
/**
......@@ -948,7 +948,7 @@ AbstractCustomMap.prototype.getGoogleMap = function() {
*
*/
AbstractCustomMap.prototype.setGoogleMap = function(gmap) {
this.map = gmap;
this._map = gmap;
};
AbstractCustomMap.prototype.isMarkerOptimization = function() {
......
......@@ -75,7 +75,7 @@ Submap.prototype.init = function(htmlTag, jsVar) {
var mapOptions = this.creatMapOptions(this.configuration.MAPS.length);
this.map = new google.maps.Map(controlDiv, mapOptions);
this.setGoogleMap(new google.maps.Map(controlDiv, mapOptions));
if (this.isCustomTouchInterface()) {
this._touchInterface = new TouchMap(this);
}
......
......@@ -374,11 +374,11 @@ TouchMap.prototype.ongoingTouchIndexById = function(idToFind) {
TouchMap.prototype.setMap = function(map) {
this.map = map;
this._map = map;
};
TouchMap.prototype.getMap = function() {
return this.map;
return this._map;
};
module.exports = TouchMap;
......@@ -209,11 +209,11 @@ OverlayCollection.prototype._getDetailArrayByIdentifiedElement = function(elemen
};
OverlayCollection.prototype.setMap = function(map) {
this.map = map;
this._map = map;
};
OverlayCollection.prototype.getMap = function() {
return this.map;
return this._map;
};
module.exports = OverlayCollection;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment