2
Hello, I’m using the directive "Angular Leaflet Directive" (http://tombatossals.github.io/angular-leaflet-directive/#!/) next to the Leaflet map.
My question is the following, there is the possibility to insert some variable or Scope in that extend?
angular.extend(vm, { // ESTENDE AS PROPRIEDADES DO MAP (MARCADORES, LOCALIZAÇÃO INCIAL..)
center: { // LOCALIZAÇÃO INICIAL .
lat: -15.25241,
lng: -52.21115241,
zoom: 4
},
markers: vm.markers,
defaults: {
tileLayer: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
tileLayerOptions: {
detectRetina: true,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> | © <a href="http://www.openstreetmap.org/copyright">Funil PRÓ</a>'
},
}
});
What I need to do is change the coordinates as I click on an element in the view and when I insert an "external" variable into this component it simply stops working. Thank you in advance!!
Hello! So, I was using the
angular.extend
because in all the examples I found also used, as it worked I have not changed that hehe. I will edit my question and post the whole code of the map, to be less confused.– Fred