[mapguide-users] Zoom to a coordinate in fusion

Rico van Driel rico at giskit.nl
Wed Oct 21 03:39:10 EDT 2009


Hi list,

A former colleague of mine had programmed a little php application where you can search for an address and zoom to the coordinates of the address. In a form you can type a search string and press 'search'. The application searches a database and gives a result in a list. When a user select a result, coordinates from the database are used to zoom in mapguide. See for an example  http://mapguide2.gisnet.nl/sites/Zoeterwoude/index.php

Now someone else want to use the same functionality in a fusion environment. The current application is not working in a fusion environment because the zoom function needs to be updated. Somehow I can't find the code to do this correctly. My knowledge of PHP, javascript, fusion and so is limited. I hope some knows how to do this or where I can find a useful example.

>From the old source code the following function will do the zooming. The XC and YC are coordinates from the database.

<script>
function showAdres(value)
{
// alert(window.top.ViewerFrame.mapFrame.name);

 ar = value.split("-");
 xc = ar[0];
 yc = ar[1];

//  alert(xc);
 window.top.ViewerFrame.mapFrame.ZoomToView(xc,yc,500,true);
}
</script>

I want to run the application in the taskpane part in this site
http://mapguide2.gisnet.nl/sites/dinkelland/dinkelland.php

met vriendelijke groet,
GISkit  BV

Rico van Driel
GISkit BV
Postbus 489
3990 GG Houten

De Molen 15
3994 DA Houten


Tel:         030-6340430
Fax:        030-6342433

email:     info at giskit.nl<mailto:info at giskit.nl>
www:     http://www.giskit.nl<http://www.giskit.nl/>


Op al onze aanbiedingen en overeenkomsten zijn de algemene voorwaarden van FENIT, gedeponeerd ter Griffie van de Arrondissementsrechtbank te Den Haag op 3 juni 2003 onder nummer 60/2003 van toepassing. Een exemplaar zenden wij u desgewenst kosteloos toe.<blocked::http://www.giskit.nl/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20091021/1a00edd0/attachment.html


More information about the mapguide-users mailing list