Directory:
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2
Autodesk infrastructure Map Server (AIMS)/mapguide API training material Chinese PPT download
This chapter discusses site services and resource services. As mentioned above, mapguide web extension APIs include eight services. When using these services on the page, you must first open a siteconnection to create these services. First, you must call the followingCodeTo initialize the network layer.
Mapguideapi. mginitializewebtier ("webconfig. ini ")
The webconfig. ini file is a text file that stores the Web extension configuration information. This file does not need to be changed. If you need to change it, you can view this document.
Infrastructure Map ServerRepositoryIs is an XML database that stores site data. This database contains the element source feature source, layer, and other resources. Note that for external Oracle SQL Server databases connected through data connection, repository actually stores a connection string. The repository is classified as permanent library: //, which is visible to all users. In addition, no session has a temporary warehouse. The resources stored in the temporary warehouse repository are only valid for the current user. Temporary Storage stores temporary resources, such as temporary layers.
We can use Resource Service to manipulate resources. As mentioned above, the resource service must have siteconnection created:Mguserinformation userinfo =NewMguserinformation (sessionid );
Siteconnection =NewMgsiteconnection (); siteconnection. Open (userinfo );
Mgresourceservice resourceservice = (mgresourceservice) siteconnection
. Createservice (mgservicetype. resourceservice );
The following are the most common methods for resource services. You can refer to the API reference to obtain the complete method list aims api reference.
Mgresourceservice: enumerateresources
Mgresourceservice: getresourcecontent
Mgresourceservice: setresource
Using these simple APIs can implement many interesting applications. The key is to understand the content of resources. For example, you need to understand layer definition for layer operations ). If you are not familiar with resource services, first take a look at the PPT in this chapter, and then make solution3 (here) in the sample code ). after completing this, you can read this blog intelligence landing page. ThisArticleThis article introduces the smart homepage of mapguide, which can implement conditional filtering of elements and view jump. These interesting applications are actually implemented through resource services. This example also provides the source code.
Training material PPT download en_aims_api_chapter_3
Download the sample code: here