I've been trying to make a custom widget to switch between floors using radio buttons. I have a portal web map for each floor and want the radio button to display that floor with I click on it. It doesn't display to new map when clicked. What to do to make it work? Thanks!
define([
'jimu/BaseWidget',
"esri/dijit/BasemapLayer",
"esri/arcgis/utils",
'esri/layers/ImageParameters',
'dojo/domReady!'
], function(
BaseWidget,
BasemapLayer,
arcgisUtils,
ImageParameters) {
function FloorSwitchWidget(params) {
this.constructor(params);
}
var map, baseStartup;
FloorSwitchWidget.prototype = BaseWidget.prototype;
FloorSwitchWidget.prototype.templateString =
'<div><b>Choose a floor to view</b><br><br>\