[mapserver-users] Zoom into a query
roman villarreal
romanvillarrealh at live.com.mx
Sat Mar 12 12:35:14 PST 2022
Hi to all
I wish all of you are ok, i have a problem and i hope some one of you can help me, for diferente reazons i was working with an old versión of mapserver (6.0.3) (i prommise update when finish this proyect)
I have a template file for a ITEMNQUERY result, the query sentence Works fine, and locate fine the object to search, but i can´t do a zoom into the query result, only select the object in the map.
How can i make a zoom into the resultant object.
This is the code of the template file:
Plantilla2.php
<!– MapServer Template –>
<html>
<head>
<title>MEX - GIS</title>
<meta charset="UTF-8" />
</head>
<body>
<form method="GET" action="[program]" name="gis_elem">
<strong>Localización individual de elementos en GIS</strong>
<input type="hidden" name="program" value="[program]">
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="imgxy" value="[center]">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="dato" value="[dato]">
<input type="hidden" name="mode" value="ITEMNQUERY">
<input type="hidden" name="qstring" value="[qstring]">
<input type="hidden" name="qlayer" value="[qlayer]">
<input type="hidden" name="qitem" value="[qitem]">
<input type="hidden" name="slayer" value="[slayer]">
<input type="hidden" name="mapx" value="[mapx]">
<input type="hidden" name="mapy" value="[mapy]">
<input type="hidden" name="id_ele" value="[id_ele]">
<input type="hidden" name="elem" value="[elem]">
<script>
var r;
r="[mode]";
if (r!="ITEMNQUERY"){document.forms["gis_elem"].submit();}
</script>
<table border="1">
<tr>
<td align="center"><input type="image" name="img" src="[img]" border="0"></td>
<td align="left" valign="top">
<p><strong>El elemento se encuentra en el grupo de [elem]</strong></p>
<p><strong>ID.Elemento:</strong> [id_ele]</p>
<p> <strong>Nombre:</strong> [nm_pozo]</p>
<hr size="1">
<p> <strong>mensaje:</strong> [dato] </p>
</td>
<tr><td valign="middle">Escala: 1:[scale]</td></tr>
</table>
</form>
</body>
</html>
Really thanks for your answers, ideas and help
Regards
Román Villarreal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220312/def67fc9/attachment.htm>
More information about the MapServer-users
mailing list