kopia lustrzana https://github.com/FacilMap/facilmap
Move toolbox and legend outside of map container
rodzic
3ad7dfa5cb
commit
065c8340c4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue