Created
April 19, 2013 20:15
-
-
Save JakobJingleheimer/5422931 to your computer and use it in GitHub Desktop.
Html markup for uiMap (before refactor)
This file contains hidden or 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.openMarkerInfo = function(marker) | |
{ | |
$scope.currentMarker = marker; | |
$scope.currentMarkerLat = marker.getPosition().lat(); | |
$scope.currentMarkerLng = marker.getPosition().lng(); | |
$scope.model.myInfoBox.open($scope.model.myMap, marker); | |
}; | |
//… |
This file contains hidden or 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
<div ui-if="mapReady"> | |
<div | |
id="map_canvas" | |
ui-map="model.myMap" | |
ui-options="mapOptions" | |
></div> | |
<div | |
ng-repeat="marker in mapMarkers" | |
ui-map-marker="mapMarkers[$index]" | |
ui-event="{'map-click':'openMarkerInfo(marker)'}" | |
></div> | |
<div | |
ic-map-info-box="model.myInfoBox" | |
ng-include="'views/map/infobox.html'" | |
></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment