<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:#000000;"><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hello list</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I got two layers (let say they are conflict together)</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "> One is:</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt;
">...............</div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">var Obs_Combo = new Ext.form.ComboBox({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> mode: 'local',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>value: "rain fall",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>triggerAction: 'all',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>forceSelection: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> width:
205,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> fieldLabel: 'Title',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>name: 'title',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>hiddenName: 'title',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>displayField: 'name',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>valueField:
'value',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>mode: "local",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>store: new Ext.data.JsonStore({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                        </span>fields : ['name', 'value'],</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                        </span>data : [</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                </span>{name : 'rainfall', value:
's1'},</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                </span>{name : 'technical stations', value: 's2'},</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                </span>{name : 'station group 1', value: 's3'},</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                </span>{name : 'station group 2', value: 's4'}</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                                </span>//{name : 'hydrological stations', value: 's5'},</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span"
style="white-space:pre">                                        </span>]</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>})</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> });</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">        </font></span></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>Obs_Combo.on('select', </font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> function(combo, record, index) {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> var tt;
tt=record.get("value");</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                </span> <span class="Apple-tab-span" style="white-space:pre">        </span>check(tt);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>check_store(tt);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>store_data.load();</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>gridPanel.reload();</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                
        </span>store_data.bind(vecLayer_ds);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>select2.bind(vecLayer_ds);<span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> },</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> this</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> ); </font></div></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">and the other is as e.g. bellows</font></div><div><font class="Apple-style-span" face="arial, helvetica,
sans-serif" size="2">........</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">function submit()</font></div><div>.......// input data from textbox here</div><div>......//input (lat,lon)...etct.</div><div>......</div><div>marker.events.register('mousedown', feature, markerClick);</div><div>markers=new OpenLayers.Layer.Markers("stations");</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>map.addLayer(markers); </div><div><br></div><div>I have two problems:</div><div>1) when I click to the makers on the map, pupup doesn't appear until I turn off the vecLayer_ds on the tree menu, How could I do in this case, without turn on and turn off the vecLayer_ds.</div><div><br></div><div>2) How can I search for mapLayer name markers and turn it off if I click again on the submit() function because If I click n time code will do n time of
map.addLayer(markers)</div><div><br></div><div>Please give me a solution, many thanks for reading this msg</div><div><br></div><div>Quang</div><div><br></div><div><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; position: fixed; "></div>
</div></body></html>