SampleCode description

Feedback


SuperMap iPortal provides samplecode to help you understand how to use the SuperMap iPortal API to develop and how to perform custom development based on SuperMap iPortal. The samplecode locates in the %SuperMap iPortal_HOME%\samples\code directory. Before using the samplecode, run the LibReplace.bat in the directory to replace the location of the dependency jars with the location of the current iPortal package. Below shows the description of the samplecode.

  Directory Eclipse project /RESTAPI directory Description
Using iPortal API UsePortalRESTAPI RESTMapManagement Use RESTAPI to implement map operations. The provided samplecode -- getMapDetail.html, implements the functions of searching a specified map, viewing the map information, modifying the map information, and sharing. See: Map operations.
RESTGroupManagement Use RESTAPI to implement group operations. The provided samplecode -- groups.html, implements creating a group, sharing a group, inviting users. See: Group operations.
RESTDataManagement Use RESTAPI to implement data operations. The provided samplecode -- upload.html implements uploading data, sharing data, downloading data. See: Data operations.

Customize iPortal back-end

CustomPortal

Custom_Portal Use Jersey to develop a new resource based on iPortal. See: Example 1—Use Jersey to develop a new resource based on iPortal.
Use Jersey to develop a new child resource based on an existing resource in iPortal. See: Example 2—Use Jersey to extend a child resource based on an existing resource in iPortal.

Customize iPortal management

iportal-admin-ui-extend

/ Customize the iPortal back-end management modules based on Vue components. The samplecode implements adding an embedded page and opening new windows. See: Example 2—Extend a new management page based on Vue components

 

In addition,the samplecode for extending the built-in WebApps locates in: