You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 11, 2020. It is now read-only.
Found what was the issue. i was using $interpolateProvider for resolving conflict between django and angular. so i was using {[{center}]} instead of {{center}}. i guess ngmap is having difficulty in recognizing this change.
The text was updated successfully, but these errors were encountered:
This is what I do to change the center of my map dynamically based on click.
//init map and download.
NgMap.getMap().then(function(map) {
//set center (right now syncromatics)
$scope.vm.map = map;
var myLatlng = new google.maps.LatLng(34.048655, -118.254717);
$scope.vm.map.setCenter(myLatlng);
}
//use this to dynamically change the center of your map by adding to click function .
$scope.vm.map.setCenter(new google.maps.LatLng(stop.latLng.lat(), stop.latLng.lng()));c
i dont know how to change Map center point dynamically, its not taking the values i give..
heres the code i'm running : Plunkr
Found what was the issue. i was using $interpolateProvider for resolving conflict between django and angular. so i was using {[{center}]} instead of {{center}}. i guess ngmap is having difficulty in recognizing this change.
The text was updated successfully, but these errors were encountered: