-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
marker cluster sumatory of markers label #1
base: master
Are you sure you want to change the base?
Conversation
www/MarkerCluster.js
Outdated
var countCluster = 0; | ||
cluster._markerArray.forEach(function (marker) { | ||
var data = marker.get('data'); | ||
if (data && data.data && data.data.operative == 'ECHARGE') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Le pondria algo mas generico. Algo como
if (data && data.data && data.data.sumLabel) {
countCluster += data.data.label;
} else {
countCluster += 1;
}
Al meter el else ya no te hace falta el if de la linea 966
www/MarkerCluster.js
Outdated
MarkerCluster.prototype.getClusterLabelData = function (self, data, key) { | ||
var self = self; | ||
var index = key.indexOf("."); | ||
var firstPart = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cambiar la manera de acceder por esta manera, con un comentario a este enlace:
Delete commented unused crossWalk code
Allow currentPageUrl ionic3 with only https:/localhost/
Pull request guide
Thank you for considering to improve this cordova-plugin-googlemaps.
When you create a pull request, please make it to multiple_maps branch instead of master branch.
Because the multiple_maps branch is edge version.
Thank you for your understanding.