Autodesk 15606-011408-9300 Developer Guide - Page 173
Example Code, Set up the event observers that pass information from
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 173 highlights
The main page is called maps_poi.htm. It contains the following code, which sets up the frames: maps_poi.htm Example Code Points of Interest Sample Notice that the frame at the left, which contains the map, is called mapFrame and uses the page map.htm. The frame at the right, which contains the controls, is called poiFrame and uses the poi.asp file. First, take a look at the code for the map.htm file, which will perform the following tasks: 1 Embed the map. 2 Set up the event observers that pass information from the onDigitizedPoint event to the appropriate function. You do this by defining a VBScript function for use by Internet Explorer and embedding the MapGuideObserver6.class file for use by Netscape. 3 Define a function that takes the point from the observers and updates the text boxes with the point's coordinates. map.htm Example Code Points of Interest Map // Send onDigitizedPoint events from Autodesk MapGuide Viewer ActiveX Control // to the event-handling function Sub map_onDigitizedPoint(Map, Point) onDigitizedPoint Map, Point End Sub // Determine browser... bName = navigator.appName; SDF Component Toolkit Applications | 173