diff --git a/README.md b/README.md index 1422ea1..145a687 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/worldmap/index.html b/worldmap/index.html index 02b35f8..1cf5166 100644 --- a/worldmap/index.html +++ b/worldmap/index.html @@ -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]]); } }