Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include angular-google-maps #47

Open
thaiat opened this issue Oct 25, 2014 · 0 comments
Open

Include angular-google-maps #47

thaiat opened this issue Oct 25, 2014 · 0 comments

Comments

@thaiat
Copy link
Contributor

thaiat commented Oct 25, 2014

It include angular-google-maps

npm    install --save lodash
bower install --save angular-google-maps

then modify package.json

"browser": {
   "angular-google-maps": "./bower_components/angular-google-maps/dist/angular-google-maps.min.js",
},
...
 "angular-google-maps": {
       "depends": 
           "lodash:_",
           "angular:angular"
        ]
  }

index.html

 <script src="//maps.googleapis.com/maps/api/js?sensor=false"></script>

module.js

var angular = require('angular');
require('angular-google-maps');
var app = angular.module(fullname, ['google-maps'.ns()]);

view.html

<ui-gmap-google-map center="vm.map.center" zoom="vm.map.zoom"></ui-gmap-google-map>

scope

vm.map = {
   center: {
       latitude: 45,
       longitude: -73
    },
    zoom: 8
};

css

.angular-google-map-container { height: 400px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant