I'm trying to figure out how to open my map and have it automatically zoom to a feature by including a request querystring in the url.
For example http://localhost/mapguide/mga/mga.aspx?JobNo=04291 would zoom to the feature on the Jobs layer with a property of JobNo equaling 04291. I have already written a search/zoom to application which uses this property. It runs in the scriptFrame and is usually triggered from a button on a page that resides in the taskPane. My application opens with a page, which creates 2 frames (titleFrame, viewerFrame). The only way I can figure out how to do this, is to pass the request string to a Session.Item. Then, I have some code in the task pane's default page which can submit a form using javascript to the scriptframe. However, I was hoping to put all of this functionality into the opening page, that way I wouldn't have to pass variables using the session item. Which is more desirable, because if the user presses the home button in the task area the code would execute again. Does anyone have any ideas or experience with making the map zoom to a feature upon being opened? Thanks. Ph: (425) 486-1252 Fx: (425) 486-6108 www.meadgilman.com <http://www.meadgilman.com/>
<<image003.jpg>>
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users