Sample code description

Feedback


SuperMap iPortal provides demonstration programs to help you learn how to use the SuperMap iPortal API for development and how to customize your development based on SuperMap iPortal. The SuperMap iPortal demonstration program is located in the% SuperMap iPortal_HOME% \ samples \ code directory. When you use it, run the LibReplace.bat file in the directory to dynamically replace the location of the jar package in the demonstration program. The contents of the demonstration program are described in the following table:

  Catalog Eclipse project / RESTAPI directory Description
Use the iPortal API UsePortalRESTAPI RESTMapManagement Using RESTAPI to achieve map operations, including getMapDetail.html one example html page, in turn, implements the functions of finding the specified map, viewing the map information, modifying the map information, sharing map information. See Map Operations.
RESTGroupManagement Using RESTAPI to achieve group operation, including groups.html one example html page, in turn, implements the functions of creating a group, group sharing, inviting user. SeeGroup Operations
RESTDataManagement Using RESTAPI to achieve data operations, including upload.html one example html page, in turn, implements the functions of uploading data, sharing data, downloading data. SeeData Operations

Custom iPortal

CustomPortal

Custom_Portal Customize the development of a new resource based on iPortal. See: Case 1 - Develop new resources based on iPortal.
Custom_App_Sample Customize the development of a new resource based on Jersey. Independent of iPortal, users can freely select the database, create a new business resource module, you can also share the user information through the CAS to customize the new business resources. See: Case 2 - Customize new resources based on Jersey.