Skip to content
Advertisement

AngularJS google maps directive

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

JavaScript
JavaScript
JavaScript

In the controller:

JavaScript

Advertisement

Answer

Different answer, but I felt google-maps-directive is harder for me to use. Thus, I have created a google maps angularjs directive called, ng-map for my own project. This does not require any Javascript coding for simple functionality.

it looks like this

JavaScript
Advertisement