Skip to content

Instantly share code, notes, and snippets.

@nelyj
Created June 2, 2014 14:39
Show Gist options
  • Save nelyj/35e686187f144c82d965 to your computer and use it in GitHub Desktop.
Save nelyj/35e686187f144c82d965 to your computer and use it in GitHub Desktop.
Example of animation with angularjs for google maps
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
};
}]);
<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