Have no idea how to provide center coordinates dynamically
<ng-map center="[{{ a }}, {{ b }}]"><ng-map>
— Just not works.
Do I have to provide them always as string without ng expression?
try this <ng-map center="{{ a }}, {{ b }}"><ng-map>
Not works also.
I read sources and it is because there is no evaluation of expressions from center attr in map controller
Please provide me a plunker example. This example works fine, http://ngmap.github.io/#/map_with_dynamic_center.html
I have no idea, it works in your plunker. And today get working in my project, but from time to time. I'll provide plunker after I understand the reason why it happening.
Only have screenshot from project page:

I am having the same problem :( any ideas on how to fix this?
@larissaleite you can fix this ?
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position){
$scope.$apply(function(){
$scope.position = position;
});
});
}
Ran into a similar problem. For me it was that I was using center= on my marker tag instead of ng-map.
This code is working, and provides a drag-able marker w/ function to run on that event:
<ng-map center="[{{latitude}}, {{longitude}}]">
<marker position="{{latitude}},{{longitude}}" draggable="true" on-dragend="getCurrentLocation()"></marker>
</ng-map>
how can I get the coords when moving the marker?
@isaacSolano
<marker position="[40.74, -74.18]" centered="true" draggable="true" on-dragend="vm.getMarkerLocation()"></marker>
vm.getMarkerLocation = function(){
var lat = this.position.lat()
var lng = this.position.lng()
console.log(lat,lng)
}