i'm trying to implement simple openlayers map using angular
var app =angular.module('app',[] ); app.controller= ('myController',function() { var map = new OpenLayers.Map('map', { projection: new OpenLayers.Projection("EPSG:4326"), displayProjection: new OpenLayers.Projection("EPSG:4326"), layers: [ new OpenLayers.Layer.OSM()] }); if (!map.getCenter()) { map.zoomToMaxExtent(); } return map; }
I can't find solution for this error :
Uncaught Error:
[$injector:modulerr] http://errors.angularjs.org/1.3.15/$injector/modulerr?p0=app&p1=Error%3A%20…gleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.15%2Fangular.min.js%3A17%3A381)
What am i doing wrong?