Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

map.control not refreshing  #1460

@renege

Description

@renege

The Refreshing is not working:

app.controller('FoobarController', function($scope, $http) {

    $scope.info = '';
    $scope.map = { 
        id: 0,
        zoom: 8
        control: {
        },
    }; 

    $scope.foobar = function(data){
        $http.post('/get/foobar', data)
            .success(function(data, status, headers, config) {
                // correct lat-lng returned
                $scope.map.control.refresh({latitude: data.latitude, longitude: data.longitude});
                // and is there a way I can change the zoom also?
            });
    };

}
<ui-gmap-google-map center="map.center" zoom="map.zoom" dorebuildall="true" control="map.control"></ui-gmap-google-map>  

What am I missing? Where can I find good docs/examples for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions