Created
January 12, 2015 18:16
-
-
Save madzhuga/de7c164e065ad17533ff to your computer and use it in GitHub Desktop.
merge result.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.addZoomListener = function () { | |
$scope.zoomListener = google.maps.event.addListener($scope.map, 'zoom_changed', function () { | |
//when zoom changed we need to clear all old markers | |
// as it changes regions to their parents etc | |
$scope.calculatePortInfoPosition(); | |
$scope.cleanAllMarkers(); | |
$scope.reloadMarkers(); | |
}); | |
}; | |
$scope.cleanAllMarkers = function () { | |
$.each($scope.map.ports, function (i, port) { | |
port.setMap(null) | |
}); | |
$scope.map.ports = []; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment