Upload
others
View
19
Download
0
Embed Size (px)
Citation preview
1
SuperGIS ServerSuperGIS ServerChapter 5 Chapter 5 Integrated with ArcGIS Integrated with ArcGIS Server Online LayerServer Online Layer
2
Learning ObjectsLearning Objects
SuperGIS Server includes ArcGIS Server Online LayerArcGIS Map API includes SuperGIS Server
3
ArcGIS Server Online LayerArcGIS Server Online Layer
4
Overall WorkflowOverall WorkflowUpdate to ”SuperGIS Server 3.1” Set up Coordinate.
Create ”Cached WebSite”Set up ”Map Service”
Modify WebSite
Start
Done
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
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”.
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
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);
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();
10
ReferenceReference
C:\Program Files\SuperGeo\Server\ClientAPI\JavaScript\Samples\Sample20.htm
11
12
ArcGISArcGIS Online API includes Online API includes SuperGIS Server LayerSuperGIS Server Layer
13
WorkFlowWorkFlowUpdate to ”SuperGIS Server 3.1” Create WebSite
Set up Map Service Modify WebSite
Start
Done
14
Google Map API includes Google Map API includes SuperGIS ServerSuperGIS Server
Update to ”SuperGIS Server 3.1”Create WebSiteSet up Map ServiceModify WebSite
15
ReferenceReferenceC:\Program Files\SuperGeo\Server\ClientAPI\ArcGISOnline\sample.htm
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.
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
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.)
19
20
Modify Modify WebSiteWebSitesample.htmChange the “IP” and “cfg” name in sample.htm.
21
22
The EndThe End