remove unnecessary logging

This commit is contained in:
Dave Conway-Jones 2018-10-22 22:29:16 +01:00
parent 24f3a066ba
commit 6838038c66
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 1 additions and 4 deletions

View File

@ -248,7 +248,7 @@ Optional properties include
- **layer** - set map to specified base layer name - `{command:{layer:"Esri"}}`
- **showlayer** - show the named overlay(s) - `{command:{showlayer:"foo"}}` or `{command:{showlayer:["foo","bar"]}}`
- **hidelayer** - hide the named overlay(s) - `{command:{hidelayer:"bar"}}` or `{command:{hidelayer:["bar","another"}}`
- **side** - add a second map alongside with slide between them. Use the name of the *baselayer* to add - or "none" to remove the control. - `{command:{side:"Esri Satellite"}}`
- **side** - add a second map alongside with slide between them. Use the name of a *baselayer* to add - or "none" to remove the control. - `{command:{side:"Esri Satellite"}}`
- **split** - once you have split the screen - the split value is the % across the screen of the split line. - `{command:{split:50}}`
- **map** - Object containing details of a new map layer:
- **name** - name of the map base layer OR **overlay** - name of overlay layer

View File

@ -1509,11 +1509,8 @@ function doCommand(cmd) {
// Turn on an existing overlay(s)
if (cmd.hasOwnProperty("showlayer")) {
if (typeof cmd.showlayer === "string") { cmd.showlayer = [ cmd.showlayer ]; }
console.log(typeof cmd.showlayer,cmd.showlayer);
for (var i=0; i < cmd.showlayer.length; i++) {
console.log(cmd.showlayer[i]);
if (overlays.hasOwnProperty(cmd.showlayer[i])) {
console.log("DING");
map.addLayer(overlays[cmd.showlayer[i]]);
}
}