Hello to all,
i'm attempting to customize a query tool written in PHP/Mapscript external to 
Pmapper that selects features and highlights them on the map

i'm using "PM.Map.zoom2extent" and zoom works fine but the highlights does not 
work.

my code:

if(!$boxquery = @pg_query("SELECT ST_Xmin(ST_Union(the_geom)) as xmin, 
ST_Ymin(ST_Union(the_geom)) as ymin, ST_XMax(ST_Union(the_geom)) as xmax, 
ST_Ymax(ST_Union(the_geom)) as ymax  FROM particelle where id=$stringa"))

die("Errore nella query: " . pg_last_error($connection));

while($boxrow = pg_fetch_assoc($boxquery))
{
  $pjbuff = 8.0;
  $Minx = $boxrow['xmin'] - $pjbuff;
  $Miny = $boxrow['ymin'] - $pjbuff;
  $Maxx = $boxrow['xmax'] + $pjbuff;
  $Maxy = $boxrow['ymax'] + $pjbuff;
  $boxresult = ''.$Minx.'+'.$Miny.'+'.$Maxx.'+'.$Maxy.'';
}
echo "<br><img src=\"images/zoomto.gif\" alt=\"\" hspace=\"10\" 
align=\"absmiddle\" border=\"0\" /><a 
href=\"javascript:PM.Map.zoom2extent(0,0,'${boxresult}',1)\">Visualizza dati 
selezionati</a>";


Any help is appreciated, thanks in advance

Sandro



-- 
Consider the environment. Please don't print this e-mail unless you really need 
to.

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Informativa ai sensi del d.lgs. 196/03
Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o Società sopraindicati. La diffusione, distribuzione e/o copiatura de 
documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è 
proibita, sia ai sensi dell'art. 616 c.p. che ai sensi del D. Lgs. n. 196/2003. 
Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e 
di informarci immediatamente inviando un messaggio al presente indirizzo.


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to