Commit fdefc12c by niuxiaolin

latest ui 08/09/2019 17:15:01

parent 85e30543
......@@ -136,12 +136,6 @@ export class MainComponent implements OnInit {
}
});
this.setBound();
this.route.queryParamMap.subscribe(queryParams => {
this.debug = Boolean(queryParams.get("debug"))
if (this.debug) {
this.dynamicScriptLoader.load('drawing').then(data => {
// Script Loaded Successfully
......@@ -195,6 +189,12 @@ export class MainComponent implements OnInit {
});
}).catch(error => console.log(error));
this.route.queryParamMap.subscribe(queryParams => {
this.debug = Boolean(queryParams.get("debug"))
if(this.debug){
var node = document.getElementsByClassName('BMapLib_Drawing')[0];
(node as any).style.display = 'block';
}
})
......
......@@ -11494,11 +11494,11 @@ function httpGetAsync(theUrl, callback)
window.onmousewheel=function(e){
var curZoom = map.getZoom();
if(e.deltaY>0){
map.setZoom(curZoom-1);
}else{
map.setZoom(curZoom+1);
}
}
\ No newline at end of file
// window.onmousewheel=function(e){
// var curZoom = map.getZoom();
// if(e.deltaY>0){
// map.setZoom(curZoom-1);
// }else{
// map.setZoom(curZoom+1);
// }
// }
\ No newline at end of file
......@@ -266,7 +266,7 @@ body.jw-modal-open {
width: 4em;
line-break: strict;
white-space: initial;
margin-top:0.3em;
// margin-top:0.3em;
}
legend{
......@@ -280,3 +280,6 @@ legend{
font-size: 22px;
color:white;
}
.BMapLib_Drawing{
display: none;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment