Commit 6824e5640d773d85599dc5cb0d112cbc75952789

Authored by Jose Pinto
1 parent a3e5f2152b
Exists in master

ok nombre directiva

src/js/osm-directive.js
1   -angular.module('focaLogisticaPedidoRuta').directive('osma', function() {
  1 +angular.module('focaLogisticaPedidoRuta').directive('osmPuntoDescarga', function() {
2 2 return {
3 3 restrict: 'E',
4 4 link: function(scope, el, attrs) {
... ... @@ -9,7 +9,7 @@ angular.module('focaLogisticaPedidoRuta').directive('osma', function() {
9 9 L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(scope.map);
10 10 },
11 11 controller: ['$scope', '$timeout', function($scope, $timeout) {
12   - //resuelve bug mapa gris
  12 + //resuelve bug mapa gris en modales
13 13 $timeout(function() {
14 14 $scope.map.invalidateSize();
15 15 }, 1000);
src/views/modal-punto-descarga.html
... ... @@ -96,7 +96,7 @@
96 96 />
97 97 </div>
98 98 </div>
99   - <osma
  99 + <osm-punto-descarga
100 100 latitud="puntoDescarga.latitud"
101 101 longitud="puntoDescarga.longitud"
102 102 zoom="14"