Skip to content

Commit 161327f

Browse files
committed
CustomMarker.getVisible() added (issue allenhwkim#491)
Method improves compatibility of CustomMarker with Marker.
1 parent e00a42b commit 161327f

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

build/scripts/ng-map.debug.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ angular.module('ngMap', []);
504504
this.el.style.zIndex = this.zIndex;
505505
};
506506

507+
CustomMarker.prototype.getVisible = function() {
508+
return this.visible;
509+
};
510+
507511
CustomMarker.prototype.setVisible = function(visible) {
508512
this.el.style.display = visible ? 'inline-block' : 'none';
509513
this.visible = visible;

build/scripts/ng-map.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ angular.module('ngMap', []);
504504
this.el.style.zIndex = this.zIndex;
505505
};
506506

507+
CustomMarker.prototype.getVisible = function() {
508+
return this.visible;
509+
};
510+
507511
CustomMarker.prototype.setVisible = function(visible) {
508512
this.el.style.display = visible ? 'inline-block' : 'none';
509513
this.visible = visible;

build/scripts/ng-map.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

directives/custom-marker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
this.el.style.zIndex = this.zIndex;
9393
};
9494

95+
CustomMarker.prototype.getVisible = function() {
96+
return this.visible;
97+
};
98+
9599
CustomMarker.prototype.setVisible = function(visible) {
96100
this.el.style.display = visible ? 'inline-block' : 'none';
97101
this.visible = visible;

0 commit comments

Comments
 (0)