BrianBunker / cmv-widgets

Widgets based on the Esri jsapi, configured for the Configurable Map Viewer. Widgets include Drag and Drop, Goto, Map Navigation Hash, and Nearby.
https://brianbunker.github.com/cmv-widgets
MIT License
18 stars 24 forks source link

DnD w/ beta.2 #49

Open gregoryj98 opened 7 years ago

gregoryj98 commented 7 years ago

Some fixes for removing layers DnD on beta.2: DnD.js add around line 242 - this.droppedItems[file.name].setLayerIds([ this.createLayerID('csv-' + file.name)]) add around line 336 - this.droppedItems[url].setLayerIds([layer.id]); edit around line 680 - id:this.droppedItems[filename].getLayerIds()[0] LayerControl.js add around line 239 - try {layerControl._scaleRangeHandler.remove(); }catch(err){}