Hello, I'm using the "Angular Leaflet Directive" directive ( link ) with Leaflet map.
My question is the following, is there the possibility of inserting some variable or scope in this extension?
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 to change the coordinates as I click on an element in the view and when I insert an "external" variable in this component it simply stops working. Thanks in advance !!