I took Marker Light and almost copied it's logic, thus adapting it to
my needs I created MarkerPin(). In the examples I've seens using
MarkerLight among with MarkerManager it works as expected but I can't
get MarkerManager to notify the listeners about the position of the
markers onMoveEnd event.
The next function in MarkerManager.js stops in the line with "return"
and so, it doesn't not runs any change so my markers stick to the
place when I lose them from the boundaries.
MarkerManager.prototype.updateMarkers_ = function () {
var me = this;
me.mapZoom_ = this.map_.getZoom();
var newBounds = me.getMapGridBounds_();
// If the move does not include new grid sections,
// we have no work to do:
if (newBounds.equals(me.shownBounds_) && newBounds.z ===
me.shownBounds_.z) {
return;
}
if (newBounds.z !== me.shownBounds_.z) {
me.processAll_(me.shownBounds_, me.removeOverlay_);
me.processAll_(newBounds, me.addOverlay_);
} else {
// Remove markers:
me.rectangleDiff_(me.shownBounds_, newBounds,
me.removeCellMarkers_);
// Add markers:
me.rectangleDiff_(newBounds, me.shownBounds_, me.addCellMarkers_);
}
me.shownBounds_ = newBounds;
me.notifyListeners_();
};
What could be posibly wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---