function showResults(results) { //This function works with an array of FindResult that the task returns map.graphics.clear(); var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 2), new dojo.Color([98,194,204,0.5])); //Create Extent to use for view an area containing all the search results var SearchAreaExtent; //create array of attributes var items = dojo.map(results,function(result){ var graphic = result.feature; graphic.setSymbol(symbol); map.graphics.add(graphic); //Add Extent to Search Area Extent if (SearchAreaExtent) SearchAreaExtent = SearchAreaExtent.union(graphic.geometry.getExtent()); else SearchAreaExtent = graphic.geometry.getExtent(); return result.feature.attributes; });
dojo.style(dojo.byId("map"), "height", "75%");
esri.hide(datagrid); dojo.style(dojo.byId("map"), "height", "93%");
esri.show(datagrid); dojo.style(dojo.byId("map"), "height", "77%");
function collapseList() { dojo.byId("rightPane").style.display = 'none'; dojo.style(dojo.byId("mapDiv"), "width", "100%"); dijit.byId("mapDiv").resize(); map.resize(); map.reposition();
esri.hide(MyContentPane);
esri.show(MyContentPane);
map.resize(map)
You may want to have the datagrid inside a FloatingPane,http://dojotoolkit.org/reference-guide/1.7/dojox/layout/FloatingPane.htmlAnd you can always make any element hidden/visible,Ex: dojo.byId('grid').style.visibility = 'visible';
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.