<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><font class="Apple-style-span" size="3">I <span id="misspell-0" class=""><span id="misspell-0" class="">want</span></span> <span id="misspell-1" class=""><span id="misspell-1" class="">to</span></span> do <span id="misspell-2" class=""><span id="misspell-2" class="">the</span></span> </font><span id="misspell-0" class=""><span><font class="Apple-style-span" size="3"><span id="misspell-0" class=""><span id="misspell-3" class=""><span id="misspell-0" class=""><span id="misspell-0" class=""><span id="misspell-0" class=""><span>opposite</span></span></span></span></span></span>, I <span id="misspell-4" class="">am</span> <span id="misspell-5" class="">using</span> <span id="misspell-1" class=""><span id="misspell-6" class=""><span id="misspell-1" class=""><span id="misspell-1" class=""><span id="misspell-1" class=""><span
id="misspell-0" class="">GetFeatureInfo</span></span></span></span></span></span> <span id="misspell-2" class=""><span id="misspell-7" class=""><span id="misspell-2" class=""><span id="misspell-2" class="">request</span></span></span></span> <span id="misspell-8" class="">on</span> GeoServer <span id="misspell-10" class="">an</span> <span id="misspell-11" class="">my</span> <span id="misspell-4" class=""><span id="misspell-12" class=""><span id="misspell-4" class=""><span id="misspell-4" class=""><span id="misspell-3" class=""><span id="misspell-2" class="">params</span></span></span></span></span></span> are:</font></span></span></span></div><div><span><span id="misspell-0" class=""><span><font class="Apple-style-span" size="3"><br></font></span></span></span></div><div><span><span id="misspell-0" class=""><span><font class="Apple-style-span" size="3"><div><span id="misspell-5" class=""><span id="misspell-4" class=""><span id="misspell-3"
class="">capas</span></span></span>= [1layer,2layers] </div><div> <span id="misspell-6" class=""><span id="misspell-5" class=""><span id="misspell-4" class="">params</span></span></span> = {</div><div> REQUEST: "<span id="misspell-7" class=""><span id="misspell-6" class=""><span id="misspell-5" class="">GetFeatureInfo</span></span></span>",</div><div> EXCEPTIONS: "application/vnd.ogc.se_xml",</div><div> <span id="misspell-8" class=""><span id="misspell-7" class=""><span id="misspell-6" class="">BBOX</span></span></span>: <span id="misspell-9" class=""><span id="misspell-8" class=""><span id="misspell-7" class="">bbox</span></span></span>,</div><div>
X: e.xy.x,</div><div> Y: e.xy.y,</div><div> INFO_FORMAT: 'text/<span id="misspell-10" class=""><span id="misspell-9" class=""><span id="misspell-8" class="">html</span></span></span>',</div><div> QUERY_LAYERS: <span id="misspell-11" class=""><span id="misspell-10" class=""><span id="misspell-9" class="">capas</span></span></span>,</div><div> FEATURE_COUNT: 1,</div><div> Layers:<span id="misspell-12" class=""><span id="misspell-11" class=""><span id="misspell-10"
class="">capas</span></span></span>,</div><div> Styles: '',</div><div> WIDTH: map.size.w,</div><div> HEIGHT: map.size.h,</div><div> <span id="misspell-13" class=""><span id="misspell-12" class=""><span id="misspell-11" class="">queryVisible</span></span></span>: true,</div><div> </div><div> format: 'image/<span id="misspell-14" class=""><span id="misspell-13" class=""><span id="misspell-12" class="">png</span></span></span>'};</div><div>.....</div><div><br></div><div>then
the user add or remove one of the 2 layers</div><div><br></div><div><div>map.<span id="misspell-13" class="">removeLayer</span>(1Layer);</div><div>map.<span id="misspell-14" class="">addLayer</span>(2Layer); </div><div><br></div></div></font></span></span></span></div><div><span><span id="misspell-0" class=""><span><font class="Apple-style-span" size="3">but when I click the feature (both are points features) the <span id="misspell-15" class="">response</span> are two even if I </font></span></span></span></div><div><span><span class=""><span><font class="Apple-style-span" size="3">removeLayer(2layer)</font></span></span></span></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><br></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span
style="font-weight:bold;">De:</span></b> Andrea Aime <andrea.aime@geo-solutions.it><br><b><span style="font-weight: bold;">Para:</span></b> "Tito, Joseph" <Joseph.Tito@cobham.com><br><b><span style="font-weight: bold;"><span id="misspell-16" class="">CC</span>:</span></b> openlayers-users@lists.osgeo.org; geoserver-users@lists.sourceforge.net<br><b><span style="font-weight: bold;"><span id="misspell-1" class=""><span id="misspell-5" class=""><span id="misspell-5" class=""><span id="misspell-15" class=""><span id="misspell-14" class=""><span id="misspell-16" class="">Enviado</span></span></span></span></span></span>:</span></b> <span id="misspell-2" class=""><span id="misspell-6" class=""><span id="misspell-6" class=""><span id="misspell-16" class=""><span id="misspell-15" class=""><span id="misspell-17" class="">Miércoles</span></span></span></span></span></span>, <span id="misspell-3" class=""><span id="misspell-7" class=""><span
id="misspell-7" class=""><span id="misspell-17" class=""><span id="misspell-16" class=""><span id="misspell-18" class="">septiembre</span></span></span></span></span></span> 14, 2011 11:10 A.M.<br><b><span style="font-weight: bold;"><span id="misspell-4" class=""><span id="misspell-8" class=""><span id="misspell-8" class=""><span id="misspell-18" class=""><span id="misspell-17" class=""><span id="misspell-19" class="">Asunto</span></span></span></span></span></span>:</span></b> <span id="misspell-17" class="">Re</span>: [OpenLayers-Users] <span id="misspell-20" class="">Multiple</span> <span id="misspell-21" class="">points</span> <span id="misspell-22" class="">at</span> <span id="misspell-23" class="">same</span> <span id="misspell-24" class="">location</span><br></font><br><div id="yiv1885458185"><div class="yiv1885458185gmail_quote"><span id="misspell-25" class="">On</span> <span id="misspell-26" class="">Wed</span>, <span id="misspell-6"
class=""><span id="misspell-10" class=""><span id="misspell-27" class=""><span id="misspell-10" class=""><span id="misspell-20" class=""><span id="misspell-19" class=""><span id="misspell-21" class="">Sep</span></span></span></span></span></span></span> 14, 2011 <span id="misspell-28" class="">at</span> 6:47 <span id="misspell-29" class="">PM</span>, Tito, Joseph <span dir="ltr"><<a rel="nofollow" ymailto="mailto:Joseph.Tito@cobham.com" target="_blank" href="mailto:Joseph.Tito@cobham.com">Joseph.Tito@cobham.com</a>></span> <span id="misspell-31" class="">wrote</span>:<br><blockquote class="yiv1885458185gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US"><div><div class="yiv1885458185MsoNormal">I’m <span id="misspell-32" class="">running</span> <span id="misspell-33" class="">into</span> <span id="misspell-34" class="">an</span> <span id="misspell-35" class="">issue</span> <span id="misspell-36" class="">with</span> GeoServer <span id="misspell-38" class="">when</span> I <span id="misspell-39" class="">have</span> <span id="misspell-40" class="">multiple</span> <span id="misspell-41" class="">points</span> <span id="misspell-42" class="">that</span> are <span id="misspell-43" class="">at</span> <span id="misspell-44" class="">the</span> <span id="misspell-45" class="">same</span> <span id="misspell-46" class="">location</span>. <u></u><u></u></div><div class="yiv1885458185MsoNormal"><u></u> <u></u></div>
<div class="yiv1885458185MsoNormal">I <span id="misspell-47" class="">plotted</span> 2 <span id="misspell-48" class="">points</span> <span id="misspell-49" class="">at</span> <span id="misspell-50" class="">the</span> <span id="misspell-51" class="">exact</span> <span id="misspell-52" class="">same</span> <span id="misspell-53" class="">Lon</span>/<span id="misspell-54" class="">Lat</span>. <span id="misspell-55" class="">When</span> a <span id="misspell-56" class="">user</span> <span id="misspell-57" class="">clicks</span> <span id="misspell-58" class="">on</span> a <span id="misspell-59" class="">feature</span>, I do a <span id="misspell-8" class=""><span id="misspell-12" class=""><span id="misspell-60" class=""><span id="misspell-12" class=""><span id="misspell-22" class=""><span id="misspell-21" class=""><span id="misspell-23" class="">getFeatureInfo</span></span></span></span></span></span></span> <span id="misspell-61" class="">request</span>,
<span id="misspell-62" class="">but</span> GeoServer <span id="misspell-64" class="">is</span> <span id="misspell-65" class="">only</span> <span id="misspell-66" class="">returning</span> <span id="misspell-67" class="">information</span> <span id="misspell-68" class="">on</span> 1 <span id="misspell-69" class="">of</span> <span id="misspell-70" class="">the</span> 2 <span id="misspell-71" class="">features</span> <span id="misspell-72" class="">at</span> <span id="misspell-73" class="">that</span> <span id="misspell-74" class="">location</span>.<u></u><u></u></div>
<div class="yiv1885458185MsoNormal"><u></u> <u></u></div><div class="yiv1885458185MsoNormal"><span id="misspell-75" class="">Is</span> <span id="misspell-76" class="">there</span> <span id="misspell-77" class="">any</span> <span id="misspell-78" class="">way</span> <span id="misspell-79" class="">to</span> <span id="misspell-80" class="">tell</span> GeoServer <span id="misspell-82" class="">to</span> <span id="misspell-83" class="">get</span> <span id="misspell-84" class="">information</span> <span id="misspell-85" class="">on</span> <span id="misspell-86" class="">multiple</span> <span id="misspell-87" class="">points</span> <span id="misspell-88" class="">that</span> are <span id="misspell-89" class="">at</span> <span id="misspell-90" class="">the</span> <span id="misspell-91" class="">same</span> <span id="misspell-92" class="">location</span>?</div></div></div></blockquote><div><br></div><div><span id="misspell-93" class="">By</span> <span
id="misspell-11" class=""><span id="misspell-15" class=""><span id="misspell-94" class=""><span id="misspell-15" class=""><span id="misspell-25" class=""><span id="misspell-24" class=""><span id="misspell-26" class="">WMS</span></span></span></span></span></span></span> <span id="misspell-95" class="">spec</span>, <span id="misspell-96" class="">if</span> <span id="misspell-97" class="">not</span> <span id="misspell-98" class="">otherwise</span> <span id="misspell-99" class="">specified</span>, <span id="misspell-100" class="">you</span> <span id="misspell-101" class="">get</span> <span id="misspell-102" class="">back</span> <span id="misspell-103" class="">only</span> <span id="misspell-104" class="">the</span> <span id="misspell-105" class="">first</span> <span id="misspell-106" class="">result</span>.</div>
<div><span id="misspell-107" class="">You</span> can <span id="misspell-108" class="">get</span> more <span id="misspell-109" class="">result</span> <span id="misspell-110" class="">if</span> <span id="misspell-111" class="">you</span> <span id="misspell-112" class="">ask</span> <span id="misspell-113" class="">for</span> more <span id="misspell-114" class="">than</span> <span id="misspell-115" class="">one</span> <span id="misspell-116" class="">adding</span> &<span id="misspell-117" class="">FEATURE</span>_<span id="misspell-118" class="">COUNT</span>=<span id="misspell-12" class=""><span id="misspell-16" class=""><span id="misspell-119" class=""><span id="misspell-16" class=""><span id="misspell-26" class=""><span id="misspell-25" class=""><span id="misspell-27" class="">nn</span></span></span></span></span></span></span>, <span id="misspell-120" class="">for</span> <span id="misspell-121" class="">example</span>:</div><div><br></div><div><a
rel="nofollow" target="_blank" href="http://demo1.geo-solutions.it/playground/GeoSolutions/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-32.60931%2C22.486191%2C69.31031%2C74.309727&SERVICE=WMS&VERSION=1.1.1&X=375&Y=174&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=GeoSolutions%3Acities&Layers=GeoSolutions%3Acities&WIDTH=649&HEIGHT=330&format=image%2Fpng&styles=&srs=EPSG%3A4326&FEATURE_COUNT=50">http://demo1.geo-solutions.it/playground/GeoSolutions/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-32.60931%2C22.486191%2C69.31031%2C74.309727&<span id="misspell-122" class="">SERVICE</span>=<span id="misspell-13" class=""><span id="misspell-17" class=""><span id="misspell-123" class=""><span id="misspell-17" class=""><span id="misspell-27" class=""><span id="misspell-26" class=""><span id="misspell-28"
class="">WMS</span></span></span></span></span></span></span>&VERSION=1.1.1&X=375&Y=174&<span id="misspell-124" class="">INFO</span>_<span id="misspell-125" class="">FORMAT</span>=<span id="misspell-126" class="">text</span>%2<span id="misspell-14" class=""><span id="misspell-18" class=""><span id="misspell-127" class=""><span id="misspell-18" class=""><span id="misspell-28" class=""><span id="misspell-27" class=""><span id="misspell-29" class="">Fhtml</span></span></span></span></span></span></span>&<span id="misspell-128" class="">QUERY</span>_<span id="misspell-129" class="">LAYERS</span>=<span id="misspell-15" class=""><span id="misspell-19" class=""><span id="misspell-130" class=""><span id="misspell-19" class=""><span id="misspell-29" class=""><span id="misspell-28" class=""><span id="misspell-30" class="">GeoSolutions</span></span></span></span></span></span></span>%3<span id="misspell-16" class=""><span id="misspell-20"
class=""><span id="misspell-131" class=""><span id="misspell-20" class=""><span id="misspell-30" class=""><span id="misspell-29" class=""><span id="misspell-31" class="">Acities</span></span></span></span></span></span></span>&<span id="misspell-132" class="">Layers</span>=<span id="misspell-17" class=""><span id="misspell-21" class=""><span id="misspell-133" class=""><span id="misspell-21" class=""><span id="misspell-31" class=""><span id="misspell-30" class=""><span id="misspell-32" class="">GeoSolutions</span></span></span></span></span></span></span>%3<span id="misspell-18" class=""><span id="misspell-22" class=""><span id="misspell-134" class=""><span id="misspell-22" class=""><span id="misspell-32" class=""><span id="misspell-31" class=""><span id="misspell-33" class="">Acities</span></span></span></span></span></span></span>&<span id="misspell-135" class="">WIDTH</span>=649&<span id="misspell-136" class="">HEIGHT</span>=330&<span
id="misspell-137" class="">format</span>=<span id="misspell-138" class="">image</span>%2<span id="misspell-19" class=""><span id="misspell-23" class=""><span id="misspell-139" class=""><span id="misspell-23" class=""><span id="misspell-33" class=""><span id="misspell-32" class=""><span id="misspell-34" class="">Fpng</span></span></span></span></span></span></span>&<span id="misspell-140" class="">styles</span>=&<span id="misspell-20" class=""><span id="misspell-24" class=""><span id="misspell-141" class=""><span id="misspell-24" class=""><span id="misspell-34" class=""><span id="misspell-33" class=""><span id="misspell-35" class="">srs</span></span></span></span></span></span></span>=<span id="misspell-21" class=""><span id="misspell-25" class=""><span id="misspell-142" class=""><span id="misspell-25" class=""><span id="misspell-35" class=""><span id="misspell-34" class=""><span id="misspell-36"
class="">EPSG</span></span></span></span></span></span></span>%3A4326&<span id="misspell-143" class="">FEATURE</span>_<span id="misspell-144" class="">COUNT</span>=50</a></div>
<div><br></div><div><span id="misspell-145" class="">Cheers</span></div><div>Andrea</div></div><div><br></div>-- <br>-------------------------------------------------------<br><span id="misspell-22" class=""><span id="misspell-26" class=""><span id="misspell-147" class=""><span id="misspell-26" class=""><span id="misspell-36" class=""><span id="misspell-35" class=""><span id="misspell-37" class="">Ing</span></span></span></span></span></span></span>. Andrea Aime<br><span id="misspell-23" class=""><span id="misspell-27" class=""><span id="misspell-150" class=""><span id="misspell-27" class=""><span id="misspell-37" class=""><span id="misspell-36" class=""><span id="misspell-38" class="">GeoSolutions</span></span></span></span></span></span></span> S.A.S.<br><span id="misspell-151" class="">Tech</span> <span id="misspell-152" class="">lead</span><br><br><span id="misspell-153" class="">Via</span> <span id="misspell-24" class=""><span id="misspell-28"
class=""><span id="misspell-154" class=""><span id="misspell-28" class=""><span id="misspell-38" class=""><span id="misspell-37" class=""><span id="misspell-39" class="">Poggio</span></span></span></span></span></span></span> <span id="misspell-25" class=""><span id="misspell-29" class=""><span id="misspell-155" class=""><span id="misspell-29" class=""><span id="misspell-39" class=""><span id="misspell-38" class=""><span id="misspell-40" class="">alle</span></span></span></span></span></span></span> <span id="misspell-26" class=""><span id="misspell-30" class=""><span id="misspell-156" class=""><span id="misspell-30" class=""><span id="misspell-40" class=""><span id="misspell-39" class=""><span id="misspell-41" class="">Viti</span></span></span></span></span></span></span> 1187<br>
55054 <span id="misspell-27" class=""><span id="misspell-31" class=""><span id="misspell-157" class=""><span id="misspell-31" class=""><span id="misspell-41" class=""><span id="misspell-40" class=""><span id="misspell-42" class="">Massarosa</span></span></span></span></span></span></span> (<span id="misspell-158" class="">LU</span>)<br><span id="misspell-159" class="">Italy</span><br><br><span id="misspell-160" class="">phone</span>: +39 0584 962313<br>fax: +39 0584 962313<br><br><a rel="nofollow" target="_blank" href="http://www.geo-solutions.it">http://www.geo-solutions.it</a><br><a rel="nofollow" target="_blank" href="http://geo-solutions.blogspot.com/">http://geo-solutions.blogspot.com/</a><br>
<a rel="nofollow" target="_blank" href="http://www.youtube.com/user/GeoSolutionsIT">http://www.youtube.com/user/GeoSolutionsIT</a><br><a rel="nofollow" target="_blank" href="http://www.linkedin.com/in/andreaaime">http://www.linkedin.com/in/andreaaime</a><br>
<a rel="nofollow" target="_blank" href="http://twitter.com/geowolf">http://twitter.com/geowolf</a><br><br>-------------------------------------------------------<br>
</div><br>_______________________________________________<br>Users <span id="misspell-162" class="">mailing</span> <span id="misspell-163" class="">list</span><br><a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br><br><br></div></div></div></body></html>