Hello everybody,<br><br>I have 2 layers that are point type and I want
users to be able to click on one point (of any layer) and get the
information(attributes) related to that point. Here is my code<br><br> var estaciones = new OpenLayers.Layer.WMS("<div id=":1ha" class="ii gt">estaciones", <br>
"<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map</a>", <br> {layers:'estaciones', transparent: "true",format:"image/gif"});<br>
<br> var puntos = new OpenLayers.Layer.WMS("puntos",<br> "<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.mapl" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.mapl</a>", <br>
{layers:'puntos', transparent: "true",format:"image/gif"});<br><br>so far what I was using was a text layer to generate a marker and then get the information as follows:<br><br>
var infpuntos = new OpenLayers.Layer.Text( "infpuntos", {location: "textpunto.php"}, <br> "<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map</a>"); <br>
<br>var infestaciones = new OpenLayers.Layer.Text( "infestaciones", {location: "textpunto.php"}, "<a href="http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map" target="_blank">http://myurl/cgi-bin/mapserv?MAP=/var/www/amss_wms2.map</a>"); <br>
<br>but I would like that users could be able to click on one point and
get the information without using this text markers. I found
information about vector and gml layers with text format but I would
like to know how to use them to work with more than one layer or if
there are other solutions that someone could recomend.<br>
<br><br>thanks in advance.<br><font color="#888888"><br>Karina Guardado<br>El Salvador</font></div>