22
1 SuperGIS Server SuperGIS Server Chapter 5 Chapter 5 Integrated with ArcGIS Integrated with ArcGIS Server Online Layer Server Online Layer

SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

  • Upload
    others

  • View
    19

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

1

SuperGIS ServerSuperGIS ServerChapter 5 Chapter 5 Integrated with ArcGIS Integrated with ArcGIS Server Online LayerServer Online Layer

Page 2: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

2

Learning ObjectsLearning Objects

SuperGIS Server includes ArcGIS Server Online LayerArcGIS Map API includes SuperGIS Server

Page 3: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

3

ArcGIS Server Online LayerArcGIS Server Online Layer

Page 4: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

4

Overall WorkflowOverall WorkflowUpdate to ”SuperGIS Server 3.1” Set up Coordinate.

Create ”Cached WebSite”Set up ”Map Service”

Modify WebSite

Start

Done

Page 5: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

5

SuperGIS Server includes SuperGIS Server includes Google Map APIGoogle Map API

1. Update to ”SuperGIS Server 3.1”2. Set up Coordinate in the project file. 3. Set up Map Service4. Set up WebSite

Page 6: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

6

Project File Set up In Project File Set up In Coordinate.Coordinate.

The Coordinate system in every layer has to be set as “Geographic Coordinate System”“WGS84” with SuperGIS Desktop 3.1.Assign the “layer” projection with “GoogleWGS84.prj”Assign the “layers“ projections with “GoogleMercator.prj”Publish a map service, create a “cached website”.

Page 7: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

7

Google Map Scale:Google Map Scale:591658710.909131295829355.454566147914677.72728373957338.86364136978669.43182118489334.7159109244667.3579554622333.6789782311166.8394891155583.419744577791.709872288895.854936144447.92746872223.96373436111.98186718055.9909349027.9954674513.9977332256.9988671128.499433564.249717282.124858

Page 8: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

8

Modify WebSiteModify WebSite

Includes “js”<script type="text/javascript" src="scripts/ArcGISOnline.js"></script>

Add ArcGIS Server Onlinevar pLyr1 = new ArcGISOnline("http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer", OnLoaded);

Page 9: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

9

Function Uploaded()Function Uploaded()var pLyr = this;

var pOMap = document.getElementById("OMap")var pExt = pLyr.getExtent();var pTrans = new CachedLevelTransformation(pLyr);//var pMapBase = new MapBase(pOMap, pTrans, 0, 0,

"100%", "100%"); gMapBase.AddLayer(pLyr); var pLyr2 = new MapCachedLayer("SuperGIS Server",

"Agent.aspx");gMapBase.AddLayer(pLyr2); gMapBase.ZoomMapTo(pExt);pTrans.putMapLevel(Math.floor(pTrans.getMapLevel()));pTrans.FitLevel();gMapBase.RefreshMap(true); pMapCont.RebuildElement();

Page 10: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

10

ReferenceReference

C:\Program Files\SuperGeo\Server\ClientAPI\JavaScript\Samples\Sample20.htm

Page 11: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

11

Page 12: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

12

ArcGISArcGIS Online API includes Online API includes SuperGIS Server LayerSuperGIS Server Layer

Page 13: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

13

WorkFlowWorkFlowUpdate to ”SuperGIS Server 3.1” Create WebSite

Set up Map Service Modify WebSite

Start

Done

Page 14: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

14

Google Map API includes Google Map API includes SuperGIS ServerSuperGIS Server

Update to ”SuperGIS Server 3.1”Create WebSiteSet up Map ServiceModify WebSite

Page 15: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

15

ReferenceReferenceC:\Program Files\SuperGeo\Server\ClientAPI\ArcGISOnline\sample.htm

Page 16: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

16

Set Up the Map Service in Set Up the Map Service in the Specific Folderthe Specific Folder

In “Folder” add the “public”.In “public” folder, add the map service.

Page 17: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

17

Set Up Google Map ScalesSet Up Google Map Scales591658710.909131295829355.454566147914677.72728373957338.86364136978669.43182118489334.7159109244667.3579554622333.6789782311166.8394891155583.419744577791.709872288895.854936144447.92746872223.96373436111.98186718055.9909349027.9954674513.9977332256.9988671128.499433564.249717282.124858

Page 18: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

18

Set up Boundary ValueSet up Boundary ValueCopy the Copy the ““TopTop”” value to value to ““YY””(To meet the requirements of (To meet the requirements of

ARCGIS server online boundary.)ARCGIS server online boundary.)

Page 19: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

19

Page 20: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

20

Modify Modify WebSiteWebSitesample.htmChange the “IP” and “cfg” name in sample.htm.

Page 21: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

21

Page 22: SuperGIS Server Integrates with ArcGIS Server Online Layer. ArcGIS Online... · Learning Objects SuperGIS Server includes ArcGIS Server Online Layer ArcGIS Map API includes SuperGIS

22

The EndThe End