| 141 | == Added (by Andy Morsell) August 2008 for MGOS 2.0 Compatibility == |
| 142 | |
| 143 | I was looking at integrating this into an application and had some issues making it work with MGOS 2.0.1 and within a generic environment. So, I thought I would share those changes with other users. Go here to download a zip file which includes all of the files necessary to plug-and-play this into the task frame of a standard AJAX layout. |
| 144 | |
| 145 | * [http://www.spatialgis.com/scribble_generic_for_MGOSR2.zip MGOS2 Scribble Package] (at www.spatialgis.com due to size restrictions) |
| 146 | |
| 147 | Items that have changed: |
| 148 | |
| 149 | * Edited scribblemethodsmgr.cs to be compatible with API changes from MGOS 1.2 to 2.0. Meaning: MgCoordinateSystemFactory::!GetTransform is now used instead of the deleted !MgCoordinateSystemTransform constructor. |
| 150 | * Edited scribble.aspx to remove all hard-coded AJAX viewer frame name dependencies. Replaced with two new global !JavaScript variables (mapFrame and mainFrame). |
| 151 | * Bundled all dll's including any Microsoft .NET and AJAX dependencies. You should not need to install the AJAX Toolkit on the server for this to work. |
| 152 | |
| 153 | To use this package: unzip to a folder of your choice. Create a new virtual directory in IIS called Scribble under your existing mapguide virtual directory. Open your web layout in Studio and create a new Invoke URL custom command that points to ../Scribble/scribble.aspx with the task pane being the target. Add this custom command to your task bar menu or toolbar. Open your layout and invoke your custom URL. |