change function name as internal function
MODIFY
www/Map.js
www/Map.js
@@ -1543,7 +1543,7 @@ Map.prototype._onClusterEvent = function(eventName, markerClusterId, clusterId,
if (markerCluster) {
if (/^marker_/i.test(clusterId)) {
// regular marker
- var marker = markerCluster.getMarkerById(clusterId);
+ var marker = markerCluster._getMarkerById(clusterId);
if (eventName === event.MARKER_CLICK) {
markerCluster.trigger(eventName, position, marker);
} else {

MODIFY
www/MarkerCluster.js
www/MarkerCluster.js
@@ -377,7 +377,10 @@ MarkerCluster.prototype.removeMarkerById = function (markerId) {
});
}
};
-MarkerCluster.prototype.getMarkerById = function (markerId) {
+
+Object.defineProperty(self, '_getMarkerById', {
+ enumerable: false,
+ value: function (markerId) {
var self = this;
if (self._isRemoved) {
return null;
@@ -395,7 +398,9 @@ MarkerCluster.prototype.getMarkerById = function (markerId) {
markerOpts._cluster.marker = marker;
}
return marker;
-};
+ },
+ writable: false
+});
MarkerCluster.prototype.getClusterByClusterId = function (clusterId) {
var self = this;

change function name as internal function