77
rated 0 times
[
81]
[
4]
/ answers: 1 / hits: 15148
/ 11 Years ago, thu, september 19, 2013, 12:00:00
I'm trying to develop an app using angularjs and a directive that I've found for instantiate GMaps: http://nlaplante.github.io/angular-google-maps/#!/usage. I follow all the steps but I cant get to render the map! it returns no errors!
in the HTML
<html ng-app="Maptesting">
<div ng-view></div>
<script src="app/map.js">
</script>
In the controller:
angular.module('Maptesting', ['google-maps'])
.controller('CtrlGMap', ['$scope', function($scope) {
$scope.center = {
latitude: 45,
longitude: -73
};
$scope.markers = [];
$scope.zoom = 8;
}])
More From » angularjs