Move toolbox and legend outside of map container

pull/54/merge
Candid Dauth 2016-10-18 16:24:49 +03:00
rodzic 3ad7dfa5cb
commit 065c8340c4
4 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -4,6 +4,8 @@
bottom: 25px;
z-index: 800;
font-size: 12px;
opacity: .7;
transition: opacity .7s;
}
@ -22,7 +24,7 @@
margin-bottom: 0;
}
.fp-map-legend .panel:hover {
.fp-map-legend:hover {
opacity: 1;
}

Wyświetl plik

@ -47,7 +47,7 @@
scope.$watch("types", update, true);
var el = $($templateCache.get("map/legend/legend.html")).appendTo(map.map.getContainer());
var el = $($templateCache.get("map/legend/legend.html")).insertAfter(map.map.getContainer());
$compile(el)(scope);
scope.$evalAsync(); // $compile only replaces variables on next digest

Wyświetl plik

@ -5,7 +5,7 @@
var scope = $rootScope.$new(true);
scope.messages = [ ];
var el = $($templateCache.get("map/messages/messages.html")).appendTo(map.map.getContainer());
var el = $($templateCache.get("map/messages/messages.html")).insertAfter(map.map.getContainer());
$compile(el)(scope);
scope.$evalAsync(); // $compile only replaces variables on next digest

Wyświetl plik

@ -52,7 +52,7 @@
var ret = {
div: $($templateCache.get("map/toolbox/toolbox.html"))
};
$compile(ret.div.appendTo(map.map.getContainer()))(scope);
$compile(ret.div.insertAfter(map.map.getContainer()))(scope);
scope.$evalAsync(); // $compile only replaces variables on next digest
return ret;