Professional Documents
Culture Documents
Jian Huang
Undral Batsukh
Introduction
• 75 minute session
– 60 – 65 minute lecture
– 10 – 15 minutes Q & A following the lecture
• Who
Wh are you?
?
• Samples
p driven from real world use cases
– Resolve your questions
– Inspire your ideas
• Enhanced functionalities
– Print
1. Current mouse location in Longitude/Latitude
• Technique
Techniq
Technique:e: Geometry
Geometr
service, ASP.NET AJAX, NAD 1983 SPCS California
Web ADF JavaScript X: 123456
Y: 567890
Library
2. Modifying Toc content at runtime
• Technique
Technique::
– Handle
H dl Toc.NodesPopulated
T N d P l t d eventt
• Triggered after the nodes are populated.
• Add, modify or remove content from the Toc
• Changes must be applied each time Toc nodes are populated
• Need to explicitly manage changes you make to Toc content
3. Creating and modifying TaskResults contents
• Can explicitly
p y define
parent--child node content
parent
in TaskResults
• Technique
Technique::
– Three different result types are available:
• SimpleTaskResult
• DataSet
• TaskResultNode
– Use TaskResults.DisplayResults to add results
– Can use context menus in a TaskResults control
4. Best practice for thematic mapping
• Classify
y and render features
• Pre
Pre--computed
p layers
y solution
– Best performance solution
– Predefined, which cannot be changed by users’ definition
– Technique
Technique:: Change perspective
4. Best practice for thematic mapping
continued
• Graphicslayer
p y solution
– User interaction
– Custom renderer
– Only supports simple classification
• Technique
T h i
Technique:
: FeatureGraphics,
F t G hi Custom
C t renderer
d
4. Best practice for thematic mapping
continued
• ArcObjects
j solution
– Fully supports complicated algorithm
– Requires much more coding efforts
– Needs to take care of shallowly stateful changes
• Technique
T h i
Technique:
: shallowly
h ll l stateful
t t f l change
h managementt
ArcGIS
Server
5. Showing a progress bar whenever a Web ADF request is
issued
– ESRI.ArcGIS.ADF.ArcGISServer.Converter.ValueObjectToComObject
– ESRI.ArcGIS.ADF.ArcGISServer.Converter.ComObjectToValueObject
6. Converters
continued
• Technique
Technique:: How to perform geometry operation via
G
Geometry
t service,
i how
h to
t convertt among different
diff t data
d t
types
7. Resizing a map when window resizes
No
• The ADF JavaScript
p Map
p class Resize Resize
• Technique
Technique::
– Handle window resize event to adjust map size
– By default map maintains scale when resized
– To maintain extent
• Handle mapResized event and set the extent explicitly
8. Adding REST layers through JavaScript
• Overlay
y REST layers
y in Map
p control
• Technique
Technique:: Web ADF JavaScript, ArcGIS Server REST
Services
9. Layout template for the Print Task
• Dynamic
y real time GPS p
position display
p y
• Technique
Technique:: Client Callback, Web-
Web-Tier Graphicslayer
Web ADF
Graphics
10. Creative use cases of Graphicslayer
continued
• Consume third p
party
y web services
– Consume Yahoo traffic web service showing real time traffic
info
– Manipulate
M i l t client
li t graphics
hi byb Web
W b ADF JavaScript
J S i t
• Technique
Technique:: Client Graphicslayer
Web ADF JavaScript
Summary
• Most commonly
y asked q
questions from user community
y
resources.esri.com
• Meet the Team
– Support Island
• Social Networking
• Other sessions www.twitter.com/
– Customizing Graphics and ESRIDevSummit
MapTips with the .NET
NET Web
ADF (8:30AM 3/26)
– Building Custom Tasks for tinyurl.com/
ArcGIS Server .NET Web ESRIDevSummitFB
Applications (4:30PM)
Q&A
Help and SDK samples links
• Modifying
y g Toc content at runtime
– http://resources.esri.com/help/9.3/arcgisserver/adf/dotnet/developer/ADF/contr
ol_toc.htm
• SimpleToc
Si l T page shows h how
h to
t add
dd ContextMenu
C t tM to
t
each layer in Toc.
– http://resources.esri.com/help/9.3/arcgisserver/adf/dotnet/developer/samples/W
p p g p p
eb_Applications/common_contextmenu/1802a1ff--6c28
eb_Applications/common_contextmenu/1802a1ff 6c28--62f0
62f0--ad8d
ad8d--
6f9f30368f66.htm
• SelectionSet p
page
g illustrates how to set selectable layers
y in
TOC
– http://resources.esri.com/help/9.3/arcgisserver/adf/dotnet/developer/samples/W
eb_Applications/common_taskresults/2235D48E
eb_Applications/common_taskresults/2235D48E-
_ pp _ -D97A
D97A--4dd9
4dd9--A0B5
A0B5--
0C8AF869197F.htm
Help and SDK samples links
• Common PostbackManager
g sample
p
– http://resources.esri.com/help/9.3/arcgisserver/adf/dotnet/developer/samples/W
eb_Applications/Common_PostbackManager/C44D61CF--2311
eb_Applications/Common_PostbackManager/C44D61CF 2311--48ad
48ad--BBC9
BBC9--
D2A3A289AC84.htm