i have selected feature(feature layer) from combobox and it zoom to the feature . now i want to clear combobox slection and map . and zoom map to its default zoom.
here is my code
function clearall()
{
<SPAN class="" style="color: #858c93; border: 0px; font-size: 13px;">//combobox selection clear</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A1"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">reset</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A2"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">reset</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A3"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">reset</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A4"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">reset</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A5"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">reset</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-size: 13px;">//layer selection clear</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A1_layer'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">clearSelection</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A2_layerC'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">clearSelection</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A3_layerC'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">clearSelection</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A4_layerC'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">clearSelection</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A5_layerC'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">clearSelection</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> } //cascading code app </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> zoomRow</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">function</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> which</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">){</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">var</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> query </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">new</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Query</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-size: 13px;">//var thePoly, theExtent;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">which </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">==</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"Land"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">){</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> query</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">where </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"Name='"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">+</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">toString</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">()</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">+</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"'"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> console</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">info</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">query</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">where</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> query</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">returnGeometry </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">true</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> A1_layer</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">selectFeatures</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">query</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">FeatureLayer</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">SELECTION_NEW</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">function</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">features</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> thePoly </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> features</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">[</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">0</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">].</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">geometry</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> theExtent </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> thePoly</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getExtent</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">().</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">expand</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">2</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-size: 13px;">//Zoom out slightly from the polygon's extent</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> map</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">setExtent</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">theExtent</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">});</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> esriRequest</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">({</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> url</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;"><SPAN>"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2F" target="_blank">http://localhost:6080/arcgis/rest/services/</A><SPAN>........"</SPAN></SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> content</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> f</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'json'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">},</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> handleAs</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'json'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> callbackParamName</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'callback'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> timeout</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">15000</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">}).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">then</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">lang</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">hitch</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">this</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">function</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">response</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">){</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">var</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> store2 </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">new</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Memory</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">({</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">data</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:[]});</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A2"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">set</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'store'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">store2</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">var</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> data </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> array</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">map</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">response</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">features</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">lang</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">hitch</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">this</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">function</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">feat</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> index</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">){</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">var</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> name </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> feat</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">attributes</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">nam</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">var</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dataItem </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">index</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> name</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">name </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">};</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">return</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dataItem</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">}));</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> store2 </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">new</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Memory</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">({</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">data</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">data</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">});</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> dijit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">byId</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A2"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">set</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'store'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">store2</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A2'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">value </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"Select Room"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">}));</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">}
</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">// combobox</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"><</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">input id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A1"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> data</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">dojo</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">type</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"dijit/form/ComboBox"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> value</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"Select landing"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> onchange</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"app.zoomRow(document.getElementById('A1').value, 'Land');"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> data</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">dojo</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">props</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"maxHeight: 200"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> style</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"overflow:auto; width:200px; background-color: #E7FCCA "</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">/</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">><</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">br</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">></</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">br</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">></SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"><</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">input id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"A2"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> data</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">dojo</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">type</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"dijit/form/ComboBox"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> value</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"Select room onchange="</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">app</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">zoomRow</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">document</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">getElementById</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'A2'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">value</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">'Room'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">);</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"style="</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">overflow</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">auto</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> width</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">200px</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">background</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">color</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">#</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">E7FCCA</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">" /> <br></br></SPAN>but i got error "Cannot read property 'geometry' of undefined" at thePoly = features[0].geometry;