remove unnecessary logging
This commit is contained in:
parent
24f3a066ba
commit
6838038c66
@ -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
|
||||
|
@ -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]]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user