[Geomoose-users] hyperlinks in information tab

Fischer, Brian bfischer at houstonengineeringinc.com
Wed Feb 13 16:08:34 EST 2008


Adam,
 
I don't believe your first thing you want to do is possible with the
current state of GeoMOOSE.  The Information tab is not a seperate .html
page or frame, it is a <DIV> inside the HTML.  So you would need to
write the javascript code to replace the content of that <DIV>.  This
would likely take some digging into GeoMOOSE.  Unless Dan has some other
ideas.
 
As far as the zoom to feature function.  That only works because the
extents of the features are being returned by MapServer in the HTML
Query template.  Because you are using an external script you will need
to get the feature extents from that script.  The easiest way (and the
way I have done it in the past) is to just store the extents in the
tabular database table.  Other options might include doing a MapServer
itemquery or switching your ASP script to PHP and using PHP Mapscript.
 
Hope that helps,
Brian
 
Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522
 

________________________________

From: geomoose-users-bounces at lists.sourceforge.net
[mailto:geomoose-users-bounces at lists.sourceforge.net] On Behalf Of Adam
Feidt
Sent: Wednesday, January 30, 2008 1:04 PM
To: geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: [Geomoose-users] hyperlinks in information tab



Hello all,

     I have a couple questions that I need help with.  First of all I
have an asp script that connects to a database and displays information
in the Information tab.  From there I'm hyperlinking and running another
script that will connect to another database and display information.
Unfortunately, when I run the second script from the hyperlink it
displays in another window instead of displaying in the information tab.
Can I redirect the results?

 

Secondly, I'm running the same asp script and displaying the results in
the information tab.  From there I'm hyperlinking from the results table
to do a zoom to feature.  I'm using the below code in an asp script.

 

j_script = "javascript:Map.itemQueryLayer('Highlight','Parcels','PID',"
& "'" & strField & "'" &
",'/ms4w/apps/GeoMOOSE/PrairieMap/select_parcel_PID.map');Map.zoomToView
String(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shp
maxy]+500))"

 

Response.Write("<td style = 'text-align:center' width = '40'>" & "<a
href=" & j_script & ">" & "<img src='shared/images/view.png' border='0'
title='Click to Zoom Map to Parcel'></a>" & "</td>")

 

The polygon is selecting, but the zoom to fails because shpminx is
undefined.  Do I need to create a lookup table with the extents?
Shouldn't the Map.zoomToViewString function grab the extents from the
selected feature?

 

 

Adam M. Feidt

GIS Coordinator

City of Eden Prairie

8080 Mitchell Rd

Eden Prairie, MN 55344

phone# 952-949-8443

fax# 952-949-8334

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20080213/dbf2d958/attachment.html


More information about the Geomoose-users mailing list