Tu Mapfile esta bien, solo averigua que la ruta hacia tu TEMPLATE blank.html este bien.<br> <br>En este archivo template, ahi escribes en puro html y llamas a tus attributos entre corchetes con el nombre del campo que queres mostrar en el popup por ejemplo [nombre_departamento]<br>
<br>tambien recuerda que en tu mapfile, en el select de la DATA, tienen que ir esos campos que llamas.. no solamente el campo the_geom<br><br>Saludso<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 11:35 AM, florencia.bujan <span dir="ltr"><<a href="mailto:florita026@gmail.com">florita026@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hola Laurent,<br>
<br>
Muchas gracias nuevamente por tu respuesta, cada vez me acerco más a la<br>
solución.<br>
Te cuento que ahora logro que se despliegue un popup al hacer click sobre<br>
una capa obtneida desde mi postgis, lo que me falta es mostrar en ese popup<br>
la información de la geodatabase.<br>
<br>
Por lo que estuve leyendo, la capa debe tener un template que va a ser lo<br>
que va a mostrar supongo. Luego de solucionar algunos problemas gracias al<br>
firebug llegué a que se me despliegue un popup pero con la información de mi<br>
template, y no la de la geodatabase.<br>
¿Qué es lo que va dentro del template al cual hace referencia la capa?<br>
<br>
Gracias por tu cooperación, me ha sido de gran utilidad.<br>
Saludos,<br>
Florencia<br>
<br>
Te paso el código por las dudas:<br>
<br>
------- INIT OPENLAYERS ---------<br>
var layerRegional = new OpenLayers.Layer.WMS("Departamentos",<br>
"<a href="http://localhost/cgi-bin/mapserv.exe?map=../htdocs/GISManager/mapa2.map" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=../htdocs/GISManager/mapa2.map</a>",<br>
{layers:'Departamentos', format:'image/png'},<br>
{isBaseLayer:true, visibility:true, transparent:true,<br>
displayInLayerSwitcher: false });<br>
map.addLayer(layerRegional);<br>
<br>
var highlight = new OpenLayers.Layer.Vector("Highlighted Features", {<br>
displayInLayerSwitcher: false,<br>
isBaseLayer: false<br>
});<br>
<br>
map.addLayers([highlight]);<br>
<br>
info = new OpenLayers.Control.WMSGetFeatureInfo({<br>
url:<br>
'<a href="http://localhost/cgi-bin/mapserv.exe?map=../htdocs/GISManager/mapa2.map" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=../htdocs/GISManager/mapa2.map</a>',<br>
title: 'Identify features by clicking',<br>
layers: [layerRegional],<br>
queryVisible: true,<br>
eventListeners: {<br>
getfeatureinfo: function(event) {<br>
map.addPopup(new OpenLayers.Popup.FramedCloud(<br>
"chicken",<br>
map.getLonLatFromPixel(event.xy),<br>
null,<br>
event.text,<br>
null,<br>
true<br>
));<br>
}<br>
}<br>
});<br>
map.addControl(info);<br>
info.activate();<br>
<br>
<br>
<br>
---------- ARCHIVO .MAP -----------<br>
MAP<br>
...<br>
<div class="im"> WEB<br>
METADATA<br>
"wms_title" " Sistema de Información Geográfica"<br>
"wms_onlineresource"<br>
</div>"<a href="http://localhost/cgi-bin/mapserv.exe?map=../htdocs/GISManager/mapa2.map&" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=../htdocs/GISManager/mapa2.map&</a>"<br>
<div class="im"> "wms_srs" "EPSG:4326"<br>
"wms_transparent" "true"<br>
"labelcache_map_edge_buffer" "-10"<br>
</div> "gml_include_items" "all"<br>
"wms_feature_info_mime_type" "text/html"<br>
"gml_feature_info_mime_type" "text/html"<br>
<div class="im"> END<br>
END<br>
<br>
PROJECTION<br>
"init=EPSG:4326"<br>
END<br>
<br>
</div> # Capa de Departamentos<br>
LAYER<br>
CONNECTIONTYPE postgis<br>
NAME "Departamentos"<br>
<br>
STATUS on<br>
PROCESSING "LABEL_NO_CLIP=ON"<br>
<div class="im"><br>
CONNECTION "user=*** password=*** dbname=*** host=***"<br>
</div> DATA "the_geom FROM departamentos as departamentos using unique gid using<br>
SRID=-1"<br>
DUMP True<br>
TYPE POLYGON<br>
<br>
METADATA<br>
"wfs_title" "Departamentos"<br>
"wms_title" "Departamentos"<br>
"wms_srs" "EPSG:4326"<br>
"wms_name" "Departamentos"<br>
"wms_server_version" "1.1.1"<br>
"wms_format" "image/gif"<br>
"gml_include_items" "all"<br>
"wms_include_items" "all"<br>
END<br>
TEMPLATE "blank.html"<br>
<br>
CLASS<br>
STYLE<br>
COLOR 0 99 0<br>
OUTLINECOLOR 0 0 0<br>
END<br>
END<br>
END<br>
END<br>
<br>
<br>
<br>
-------- Template Blank.html -----------<br>
<html><br>
<head><br>
</head><br>
<body><br>
<div><br>
Probando<br>
</div><br>
<br>
<div></div><br>
</body><br>
</html><br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Problema-con-popup-en-capa-MapServer-tp5655608p5659568.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Problema-con-popup-en-capa-MapServer-tp5655608p5659568.html</a><br>
</font><div><div></div><div class="h5">Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Spanish mailing list<br>
<a href="mailto:Spanish@lists.osgeo.org">Spanish@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/spanish" target="_blank">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
</div></div></blockquote></div><br>