Skip to content

Commit

Permalink
Guard angulargmDefaults in a function so it only gets run if AngularG…
Browse files Browse the repository at this point in the history
…M is loaded.
  • Loading branch information
dylanfprice committed Oct 17, 2013
1 parent b8b69a1 commit 8a2ee4b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@
* });
* ```
*/
value('angulargmDefaults', {
'precision': 3,
'markerConstructor': google.maps.Marker,
'polylineConstructor': google.maps.Polyline,
'mapOptions': {
zoom : 8,
center : new google.maps.LatLng(46, -120),
mapTypeId : google.maps.MapTypeId.ROADMAP
}
factory('angulargmDefaults', function() {
return {
'precision': 3,
'markerConstructor': google.maps.Marker,
'polylineConstructor': google.maps.Polyline,
'mapOptions': {
zoom : 8,
center : new google.maps.LatLng(46, -120),
mapTypeId : google.maps.MapTypeId.ROADMAP
}
};
});

})();

0 comments on commit 8a2ee4b

Please sign in to comment.