Web Development
Web Development
Lecture: Amber Li
P1
Content
iServer Introduction
iPortal Introduction
iClient for JavaScript Introduction
iClient 3D For WebGL Introduction
P2
P3
SuperMap iServer
API
GIS
REST
GIS Server
GIS
Application
P4
Nautical
Map Data Geometric Chart
Service Service Service Service
Spatial Data
Third Party Data Catalog
Processing Science
Service Service
Service Service
Strong Functions 10.0.0
P5
GIS Services
P6
GIS Services
P7
GIS Services +
P8
SuperMap iServer Streaming Data Service
Attribute
Desktop
Output
Input
Spatial
Filter Map
Mobile
P9
Data Streaming Visualization
P10
SuperMap Big Data GIS + IoT
IoT perception layer
Application Display
iObjects iDesktop iMobile iClient Online
Sensor
Device gateway
Data Analysis
RFID
Steaming Data Service iDataStore Distributed Analysis
Camera Network Service
Card Reader Layer
GPS
P11
10.0.0
SuperMap iServer Machine Learning Service
SuperMap iDesktopX
Multiple
Iteration Reasoning/Predicting
Data Science
Service Successful Release
Sample Data
P12
Machine learning service
Binary Classification
Land Classification
Object Detection
Scene Classification
Spatial Density Clustering
10.0.0
P13
SuperMap iServer Machine Learning Service
Service Management Capabilities
P14
Support Personalized GIS Services - Extension
Development
• Allow to construct industrial service components for
Loosely-coupled
service all service layers
components
P15
Product Packages
• SuperMap official website
– https://www.supermap.com/en/html/SuperMap_GIS_ProductPackages.html
• Product Packages
– Install packages:
• SuperMap iServer 10i for Windows (64 bit) (Setup package)
• SuperMap iServer 10i for Windows (32 bit) (Setup package)
– Zip packages:
• SuperMap iServer 10i for Windows (32 bit) (ZIP package)
• SuperMap iServer 10i for Windows (64 bit) (ZIP package)
• SuperMap iServer 10i for Linux (64 bit)
– WAR package:
• SuperMap iServer 10i (war package)
– Deploy packages:
• SuperMap iServer 10i for Windows (64 bit) (deploy package)
• SuperMap iServer 10i or Linux (64 bit) (deploy package)
P16
P17
Data Viz Data Insights Dashboard Earth
Application Center
Portal Statistics
P18
10.0.0
SuperMap iPortal
New Design Based on Modern WebUI
P19
Adaptive UI for Multi-terminal
• No code
P20
Portal Platform - Out of Box
P22
Multiple Access Control 10.0.0
DataViz DataInsights
3D Earth MapDashboard
P24
DataViz:Support Streaming Data and 10.0.0
P30
System Requirements
Server: Windows/ Windows Server/ Linux SuperMap iPortal & SuperMap
iServer
PC: Data processing SuperMap iDesktop
P31
32
P32
Daily update of virus in
each area
Boundary data
District Neighbors
P33
Data Visualization - iDesktop
P34
Data Visualization – iPortal Online Mapping
P35
Customized Dashbord - Decison Support
P36
Customized Dashbord - Various of Charts
P37
Customized Dashbord – Connect to Web Service
Map Data
libraries visualization
SuperMap
iClient for
JavaScript
P41
SuperMap iClient for JavaScript Introduction
P42
OpenLayers
Polymaps
P43
WebGIS?
How to select map libraries
Map base libraries and corresponding open source libraries
Visualization
WebGIS? libraries?
P45
iClient For JavaScript Getting Started
—Leaflet
• Publish GIS data through the internet as a service and browse
the service at the client side
P46
System Target
• Publish a web system
– Functions: Browse a map
P47
Steps
Develop
Prepare Web
GIS data system
Create Publish
iServer Web
service system
P48
Step 1: Prepare GIS Data
• Prepare GIS data with SuperMap iDesktop
– Map: World
Start server
• A map service • Tool :
needs to be Webmanager
published to •Run startup.bat • Publish the
realize the map under the bin service in a facet
browsing function folder of iServer way
directory
Determine Create iServer
service type service
P50
Step 2: Create iServer Service
• Start iServer
– Method 1: Run startup.bat under the bin folder
– Method 2: Start > Programs > SuperMap > SuperMap iServer > Start
iServer Service
P51
Step 2: Create iServer Service
• http://localhost:8090/iserver/manager/
P52
Step 2: Test iServer Service
• Open Web browser
– Map service address: http://localhost:8090/iserver/services/map-
China/rest/maps/China
P53
Step 3: Develop Web System
• Development Tool—SuperMap iClient
– Libraries for the client GIS development tool
– Acquire iServer services
– Development tool for Web systems
• SuperMap iClient Location
– [iServer installation directory]/iClient directory
• This example employes SuperMap iClient for JavaScript
– SuperMap iClient for JavaScript product package
– [iServer installation directory]/iclient/forJavaScript
P54
Step 3: Copy Script Library Files
• Create the GettingStarted folder
• Copy script library files to the new folder
– dist folder – Core library files for development frameworks
– libs folder – Third-party technology libraries (under web folder)
P55
Step 3: Create an HMTL Page
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<title>SuperMap iClient for JavaScript</title>
</head>
<body >
</body>
</html>
P56
Step 3: Add Script Library Reference
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<title>SuperMap iClient for JavaScript</title>
<script src="dist/include-leaflet.js"></script>
</head>
<body>
</body>
</html>
P57
Step 3: Add DIV for Map Control
<html>
……
<body onload=onPageLoad()>
<div id="map" style="width:800px;height:500px;">
</div>
</body>
</html>
P58
Step 3: Create map object and set properties such
as center, scale, etc.
<head>
……
<script type="text/javascript">
var map,layer,
// Set GIS service address for browsing
url = "http://localhost:8090/iserver/services/map-China/rest/maps/China";
function onPageLoad() {
// Cerate map object
map=L.map("mapDiv",{center:[0,0],maxZoom:18,zoom:2,crs:L.CRS.EPSG3857}
}
</script>
</head>
P59
Step 3: Add iServer layer to Map
<head>
……
<script type="text/javascript">
var map,layer,
// Set GIS service address for browsing
url = "http://localhost:8090/iserver/services/map-China/rest/maps/China";
function onPageLoad() {
// Create map object
map=L.map("mapDiv",{center:[0,0],maxZoom:18,zoom:2,crs:L.CRS.EPSG3857});
L.supermap.tiledMapLayer(url).addTo(map);
}
</script>
</head>
P60
Step 4: Publish Web System
• System deployment and debugging (Tomcat)
– Copy the GettingStarted folder to the webapps directory of Tomcat
• Tomcat in SuperMap iServer is employed in this example
• Copy the GettingStarted folder to [SuperMap iServer root directory]/webapps
P61
Step 4: Publish Web System
• Browse for debugging http://localhost:8090/GettingStarted/
P62
P63
Plugin-free 3D Client: iClient3D for WebGL
Lightweight
Plugin free
SuperMap iClient3D for WebGL
Easy for
development
P64
SuperMap iClient WebGL
Cloud GIS network client development platform for 3D
Platform Independent
Technology
SuperMap SuperMap
SuperMap
iDesktop iClient3D for
iServer, iPortal
(3D Designer) WebGL
Build 3D Scene Publish 3D Service Develop Application
P66
Product Features
P67
Multi-source GIS spatial data
Manual
2D Data Modelling Use the devices Others
Vector
Street Location
(parameteri
Topography, Oblique view, & Effects Volume
zation, Max BIM Point Cloud
image, map photography panorama Internet Data Data
symbolizati
, video of things
on
P68
Type Of Layer
• Topography
• Image
• S3M layer
• KML layer
• Dynamic layer
P69
Product Features
P70
Capability of Massive Data
• Support topography and image data at TB level
• Support vector ground features and text label of over 10
million objects
• Support fine city-level models (over 400 sq.km.)
• Support oblique photography data at TB level
• Support loading and display of millions of pipelines
• Support smooth browsing of various scenes in scales of globe,
urban area, neighborhood and indoor area
P71
Dynamic Layer Efficient and real-time dynamic data
P72
Dynamic layer : 8000+ dynamic objects real-time render
P73
Global topography and image data
P74
Oblique photography model
P76
Point Cloud Data
P77
Key technologies of WebGL Client performance experience
P78
Current 3D data standard
Advantages
• standard data format
• support efficient
browsing experience of
massive models
OSGB Disadvantages
• large data redundancy
• big performance costs,
long parse time
• weak in Web support
capability
3D Tiles
P79
S3M Advantages
Data security
Easy Parse
Instantiation/batch Batch modify the visibility of
LOD
drawing multiple objects
Efficient
Render
Object efficient Discrete Color modification of multiple
selection and query Modelling objects
P80
S3M Data Supports
Oblique
BIM Point Cloud Fine Model
Photography
P81
Promote the interaction between 3D data
P82
Memory optimization of S3M Layer
• Memory Usage is Reduced by 30%
• Memory Footprint is Reduced by 20%
Video Memory
Before After
P83
Dynamic
P84
Dynamic
P85
Full-featured: Interaction with Server
Front End
Front
Analysis
Analysis 01 02 Analysis 03 End
Parameters
Calculation Display
Server
P86
Spatial Query: Three Dimensional Buffer
P87
Three Dimensional Spatial Analysis
P88
Viewshed Analysis
• Three Dimensional
Object(solid)
• Generate Viewshed
Object
• Generate Non
Viewshed Object
• Return Obstacle
Point Object
P89
Other functions
• Connect to iServer to get model volume and surface area
• Connect to iServer to get model plane projection
• Connect to iServer to do cut fill
• Connected with RTSP video streaming criterion
• S3M layer supports excavation
• S3M layer supports overlaying images within the specified range
• S3M layer supports setting maximum(minimum) visible height and distance of
layers
• Camera supports rotation around points
• Military Standard
P90
Abundant Online Resources Accumulation of Product
• Product introduction:
• http://iclient.supermapol.com/en/web/introduction/3dwebgl.html
• Online Example:
• http://iclient.supermapol.com/en/examples/3dwebgl/examples.html
• API Documentation:
• http://support.supermap.com.cn:8090/webgl/Build/Documentation/index.ht
ml
P91
SuperMap iEarth
SuperMap iEarth
Experience 3D GIS application on browser or
SuperMap iClient3D for WebGL mobile phone without any development
P92
SuperMap iEarth
http://supermapol.com/earth
P93
Download Address
https://www.supermap.com/en/html/SuperMap_GIS_ProductPackages.html
P94
Installation Directory
• Sample Code
– The sources code assists developers to quickly build
applications
• Script Libraries for Development
– Build\Cesium directory
• Index.html
– Home page , which integrates the sample code, class
reference instructions, and technical documents
– Non-plugin WebGL client development kit
introduction
P95
Preparation before development
P96
3D Data producing
• Configure appropriate workspace
– Generate cache
– Save workspace
P97
3D service publishing
• 3D service resolution:
– Service type: REST
– Service address: for example
http://servername:8090/iserver/services/3D-beijing/rest/realspace
– 3D resources included:
• datas – acquires 3D data information and 3D data cache
• scenes –acquires information for all scenes, including the
information for layers in the scene
• symbols – acquires 3D symbol resources
P98
3D servcie publishing
• url addresses required for non-plugin webGL client
development kit:
P99
Realization of 3D data loading function
Steps:
1) Includeing a script library
2) Adding container for 3D scene
3) Obtaining 3D scene objects
4) Adding the 3D data to the layer of the scene
P100
Realization of 3D data loading function
1) Include a script library
– Create a project directory-helloWorld
– Copy Build, examples\js folders of SuperMap iClient 3D for WebGL
to the project directory
– Open the js\main.js file to modify the reference path for Cesium
P101
Realization of 3D data loading function
• 1) Includeing a script library
– Create HTML file
• Create a HTML file—helloWorld.html in the project directory
– The code is as follows:
P102
Realization of 3D data loading function
1) Include a script library
– Add references to script libraries
P103
Realization of 3D data loading function
2) Adding container for 3D scene
– Add DIV element
– Instance a Viewer object
P104
Realization of 3D data loading function
3) Obtaining 3D scene objects
P105
Realization of 3D data loading function
4) Adding the 3D data to the layer of the scene
– Interface: scene --3D scene object
url : http://localhost:8090/iserver/services/3D-CBD/rest/realspace/datas/Building@CBD/config
P106
Realization of 3D data loading function
4) Adding the 3D data to the layer of the scene
– Interface: scene --3D scene object
P107
P108
Explore Local iCLient for WebGL Samples
1. Start iServer
2. Open url
http://localhost:8090/SuperMap_iClient3D_10i_for_WebGL_EN/index.ht
ml
P109
Thank you
P110