{"action":"created","issue":{"url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/215","labels_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/215/comments","events_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/215/events","html_url":"https://github.com/tombatossals/angular-openlayers-directive/issues/215","id":120221532,"number":215,"title":"Add custom projection EPSG:31370 in angular-openlayers-directive","user":{"login":"nicholasgi","id":16138433,"avatar_url":"https://avatars.githubusercontent.com/u/16138433?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasgi","html_url":"https://github.com/nicholasgi","followers_url":"https://api.github.com/users/nicholasgi/followers","following_url":"https://api.github.com/users/nicholasgi/following{/other_user}","gists_url":"https://api.github.com/users/nicholasgi/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasgi/subscriptions","organizations_url":"https://api.github.com/users/nicholasgi/orgs","repos_url":"https://api.github.com/users/nicholasgi/repos","events_url":"https://api.github.com/users/nicholasgi/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasgi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T17:01:52Z","updated_at":"2015-12-10T15:50:03Z","closed_at":"2015-12-10T15:50:03Z","body":"Hi guys,\r\n\r\nFirstly thanks you for you impressive work.  \r\nI'm currently busy to try to add a custom projection in angular openlayers - directive.\r\nI'm not sure if it's really possible in the directive. \r\n\r\nIt's look's that openlayers take my projection but defined/overwrite a default extent. Impossible for me to define my own extent.\r\n\r\nPlease see bellow my fiddle.\r\nhttp://jsfiddle.net/nicholasgi/oyf49ve7/\r\n\r\nApologize for my english.\r\n\r\nBest regards\r\n\r\nNicolas "},"comment":{"url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/comments/163666488","html_url":"https://github.com/tombatossals/angular-openlayers-directive/issues/215#issuecomment-163666488","issue_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/215","id":163666488,"user":{"login":"nicholasgi","id":16138433,"avatar_url":"https://avatars.githubusercontent.com/u/16138433?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasgi","html_url":"https://github.com/nicholasgi","followers_url":"https://api.github.com/users/nicholasgi/followers","following_url":"https://api.github.com/users/nicholasgi/following{/other_user}","gists_url":"https://api.github.com/users/nicholasgi/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasgi/subscriptions","organizations_url":"https://api.github.com/users/nicholasgi/orgs","repos_url":"https://api.github.com/users/nicholasgi/repos","events_url":"https://api.github.com/users/nicholasgi/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasgi/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T15:50:03Z","updated_at":"2015-12-10T15:50:03Z","body":"Solution found, the Directive works fine without openlayers objects.\r\n\r\n\t//Map configuration\r\n    $scope.map = {\r\n        defaults: {\r\n            interactions: {\r\n                mouseWheelZoom: true\r\n            },\r\n            events: {\r\n\t\t\t\tmap: [ 'singleclick' ]\r\n\t\t\t},\r\n\t\t\tview :{\r\n\t\t\t\tprojection:gisConstant.LAMBERT_72\r\n\t\t\t}\r\n        },\r\n        mouseclickposition: {},\r\n        location: {\r\n            autodiscover: false,\r\n\t\t\tlon: 148641.558725908,\r\n\t\t\tlat: 168747.593450965,\r\n\t\t\tzoom: 12,\r\n\t\t\tprojection:gisConstant.LAMBERT_72\r\n        },\r\n        style: {\r\n            'height': mapFullHeight(),\r\n            'width': '100%'\r\n        },\r\n    };"}}