Autodesk 15606-011408-9300 Developer Guide - Page 43
Accessing Secure Data, Handling Busy State and Map Refresh, About the Busy State
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 43 highlights
Accessing Secure Data Map authors can control whether developers can use the getVertices and getLayerSetup methods to access coordinate values and/or map layer setup data. Map authors control the security of this data from the Map Layer Properties dialog box in Autodesk MapGuide Author. If map authors allow access to the API, they can also stipulate that the application must send in a specific passkey first. If you are building an application for a map that requires a passkey to access the coordinate values and/or the layer setup data, you will need to get the passkey from the map author and pass it in with the unLock method to enable the getVertices and getLayerSetup methods. Remember that users can view any embedded scripts in HTML, so in some cases you may not want to hard code your passkey in your Web page. To keep the passkey secure, we recommend that you implement one of the following techniques: I Create an application that includes one frame that displays the map only. Be sure that the map fills up the entire frame. In this case, users will not be able to view the source code of the frame that displays the map. You can then hard code the passkey in the source code of that frame. I Write a Java applet that makes a request for the passkey to your Autodesk MapGuide Server and then returns the passkey to the script in the Web page. Call this applet in your embedded script after making sure that the user has met your security criteria. I Write your entire Autodesk MapGuide Viewer application in a Java applet. Handling Busy State and Map Refresh This section describes the map busy state and the techniques for coordinating when and how to refresh a displayed map. When Autodesk MapGuide Viewer refreshes the map display, it can cause errors in your application unless you take the correct steps to prevent them. You need to familiarize yourself with the way that the Autodesk MapGuide Viewer API is designed so you can understand how to code your application correctly. About the Busy State Autodesk MapGuide Viewer enters a busy state whenever it refreshes the display, and the busy state does not end until the data has been received from the server and the display is updated or refreshed. Accessing Secure Data | 43