angular-google-staticmaps
angular-google-staticmaps copied to clipboard
Make options available from scope
Make the entire directive parse options (for example, size, like it's currently done with markers) from scope variables, and also update on value changes.
For example:
<static-gmap size="mapSize" markers="markers" sensor="false" zoom="14"></static-gmap>
And in the controller:
$scope.mapSize = "640x320";
actually you can already do that, try: size = "{{mapSize}}"
and in your controller: $scope.mapSize = "#{window.innerWidth}x200"
for example - ps this is coffeescript syntax