angular-google-staticmaps icon indicating copy to clipboard operation
angular-google-staticmaps copied to clipboard

Make options available from scope

Open alexandernst opened this issue 11 years ago • 1 comments

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";

alexandernst avatar Mar 25 '14 23:03 alexandernst

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

pbelouin avatar Jun 12 '16 20:06 pbelouin