Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Support of $interpolateProvider #517

Open
amjidbacker opened this issue Feb 20, 2016 · 2 comments
Open

Support of $interpolateProvider #517

amjidbacker opened this issue Feb 20, 2016 · 2 comments
Labels

Comments

@amjidbacker
Copy link

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.

@allenhwkim
Copy link
Owner

ngMap does not recognize $interpolateProvider at this moment.

@samriddhi
Copy link

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

@allenhwkim allenhwkim changed the title How do i change map center dynamically Support of $interpolateProvider Apr 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants