Skip to content

Instantly share code, notes, and snippets.

@nosalvage
Created May 6, 2016 13:32
Show Gist options
  • Save nosalvage/3f5837159d5f3384d3433c5956027995 to your computer and use it in GitHub Desktop.
Save nosalvage/3f5837159d5f3384d3433c5956027995 to your computer and use it in GitHub Desktop.
$scope.map = {
san_fran: {
lat: 53.2219245,
lng: 63.609848799999995,
zoom: 12
},
markers: {},
controls: {
custom: [
L.control.locate({ drawCircle: false, follow: true })
],
routingMachine: {
waypoints: []
}
},
tiles: tilesDict.openstreetmap,
defaults: {
scrollWhenZoom: false
}
}
$scope.connectTaxi = function(){
var ff = new Firebase("https://blinding-heat-2337.firebaseio.com/profile");
$timeout(function(){
$scope.map.controls.routingMachine.waypoints = [L.latLng(53.2219245, 63.609848799999995), L.latLng(53.2214208, 63.6109239)];
});
console.log($scope.map.controls);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment