Created
June 2, 2014 14:39
-
-
Save nelyj/35e686187f144c82d965 to your computer and use it in GitHub Desktop.
Example of animation with angularjs for google maps
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
var app = angular.module("AppController", []); | |
app.controller('MapController',['Publication','$scope',function(Publication,$scope){ | |
$scope.map = { | |
center: { | |
latitude: "Address", | |
longitude: "Address" | |
}, | |
options: { | |
animation: google.maps.Animation.BOUNCE | |
}, | |
zoom: 15 | |
}; | |
}]); |
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
<google-map center="map.center" zoom="map.zoom" draggable='true'> | |
<marker coords="marker" options="map.options"></marker> | |
</google-map> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment