22
Building .NET Applications Building .NET Applications using the ArcGIS Server Web ADF using the ArcGIS Server Web ADF using the ArcGIS Server Web ADF using the ArcGIS Server Web ADF Rex Hansen Rex Hansen Rich Zwaap Rich Zwaap

Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Building .NET Applications Building .NET Applications using the ArcGIS Server Web ADFusing the ArcGIS Server Web ADFusing the ArcGIS Server Web ADFusing the ArcGIS Server Web ADF

Rex HansenRex HansenRich ZwaapRich Zwaap

Page 2: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

IntroductionsIntroductions

•• Who are we?Who are we?–– ArcGIS Server Product EngineersArcGIS Server Product Engineers–– Manage the ArcGIS Server SDK for .NET technologiesManage the ArcGIS Server SDK for .NET technologies

•• Who are you?Who are you?•• Who are you?Who are you?–– ASP.NET developers who want to learn more about the Web ASP.NET developers who want to learn more about the Web

ADF ADF

Page 3: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

ScheduleSchedule

•• Today we will coverToday we will coveryy

–– Web ADF component areasWeb ADF component areasWhat’s new in 9 3 1What’s new in 9 3 1–– What’s new in 9.3.1What’s new in 9.3.1

–– Q & AQ & A

•• We will answer questions during session or at the end?We will answer questions during session or at the end?–– Save all questions until the endSave all questions until the endSave all questions until the endSave all questions until the end

Please complete the session survey!Please complete the session survey!

Page 4: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web Application Developer FrameworkWeb Application Developer Framework

44

Page 5: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Options for creating Web ADF applications

• ArcGIS Server Manager – Set required parametersq p– Map, table of contents– Theme, hyperlinks– Can modify in Visual Studioy

• Visual Studio template – Same files as

ArcGIS Server ManagerArcGIS Server Manager

• Visual Studio Web site– Add your own

customizationscustomizations

55

Page 6: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web Mapping Application templateWeb Mapping Application template

• Web pages• Web ADF controls• Custom tools

and controlsand controls• Themes• Resources

Links• Links• Help system

66

Page 7: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Advantages of working with template

• Efficient - saves time developing your web sitep g y• Contains out-of-the-box basic map display elements

– Main mapT bl f t t (l d)– Table of contents (legend)

– Toolbar with GIS commands– Menu bar

• Customizable

77

Page 8: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web ADF Controls

• GIS user interface components– Access to multiple servicesp– Visualization, Query, Analysis

• AJAX enabledS i t bl• Scriptable

• Rich out-of-the-boxfunctionality Vi l St di i t ti• Visual Studio integration– Web Mapping Application template

88

Page 9: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Demo – Web Controls

• Map, MapResourceManager, MapTipsp, p g , p p• Blend multiple resources (layers)• Configure map tips using design-time dialog

99

Page 10: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web ADF JavaScript Library

• Enhances the Web ADF Web Controls and Framework– Client side functionality and behaviors

• Built using Microsoft AJAX JavaScript base libraryS t f ll k MS AJAX P tt– Support for well known MS AJAX Patterns

– Documentation provided by Microsoft

• Event Driven– Respond to map events directly in browser (e.g. scriptable Map)

• Object Oriented– Full object model and SDK detailing how to use itFull object model and SDK detailing how to use it

Web ADF JavaScript Library = ArcGIS JavaScript API

1010

Page 11: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Demo – JavaScript Library

• Handle mouse click on the map using JavaScriptp g p• Pan and zoom the map

1111

Page 12: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web ADF Data Sources

• Common Data Source API– Generic framework for supporting multiple data source types– Manages interaction between Web controls and data sources– Implemented by each supported data sourceImplemented by each supported data source– Extensible architecture

• Data source specific APIsS ifi t d t t ( A GIS S SOAP)– Specific to a data source type (e.g. ArcGIS Server SOAP)

– Used for the Common API implementation

1212

Page 13: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Demo – Common API

• Define a Microsoft Virtual Earth base layery• Use an ASP.NET AJAX UpdatePanel• Use QueryFunctionality

1313

Page 14: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web ADF Graphics Web application

• Web-tier .NET

ADF Graphics Layer

– Spatially enabled .NET DataTables– Render on the server using GDI+

or the client using JavaScript graphics

ArcGIS Server Map Service

g p g p

• Client-tier JavaScript – Graphic features and groups

Callouts and MapTips

Browser

ADF JavaScriptGraphic Feature– Callouts and MapTips

– Layer formatting defines symbologyand attribute display

– Rendered using browser client

Graphic FeatureGroup

Rendered using browser client technologies - e.g. HTML, SVG, VML

1414

Page 15: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Demo – Graphics

• Create “Graphics Layer” as resource itemp y• Add graphics layer as results from query• Show interaction between GridView and Map

1515

Page 16: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Web ADF Task Framework

• Web tasks encapsulate a workflow which accepts user input and generates results

• Extensible Framework enables you to:– Customize existing out-of-the-box tasks

• QueryAttributes, Editor, Print, etc.– Create custom Web tasks– Manage resultsg

• Display attributes • Visualize on a Map

– Integrate tasks with gVisual Studio and Manager

1616

Page 17: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Demo – Tasks

• Add a PrintTask• Add TaskResults control to display query results

1717

Page 18: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

What’s New in 9.3.1

• MapTips templates• Microsoft Virtual Earth support• ArcGIS Image service support• PrintTask templates• PrintTask templates• UserControl task support• Custom server object extension (SOE) and property page

integration with Managerintegration with Manager• Standard design-time messaging for controls in Visual Studio • Enhanced ScaleBar control – rendered on client by default

1818

Page 19: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Demo –

• Create and apply a custom PrintTask template • Add a ScaleBar control

1919

Page 20: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

SummarySummary

•• Today we Today we yy–– Introduced the Web ADF for Microsoft .NETIntroduced the Web ADF for Microsoft .NET–– Discussed the major component areas of the productDiscussed the major component areas of the product

Presented the new features coming in 9 3 1Presented the new features coming in 9 3 1–– Presented the new features coming in 9.3.1Presented the new features coming in 9.3.1

Still have questions?Still have questions?

Page 21: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Additional ResourcesAdditional ResourcesQuestions, answers and information…Questions, answers and information…

•• Tech Talk Tech Talk •• ESRI Resource CentersESRI Resource Centers–– Outside this room right now!Outside this room right now! –– PPTs, code and videoPPTs, code and video

resources.esri.comresources.esri.com•• Other sessionsOther sessions

–– Building Custom Tasks for ArcGIS Building Custom Tasks for ArcGIS Server .NET Web Applications Server .NET Web Applications

•• Wednesday at 4:30pmWednesday at 4:30pm •• Social NetworkingSocial Networking•• Wednesday at 4:30pm Wednesday at 4:30pm --Primrose C/D (PSCC)Primrose C/D (PSCC)

–– Customizing Graphics and Customizing Graphics and MapTips with the .NET Web ADF MapTips with the .NET Web ADF

Th rsda at 8 30amTh rsda at 8 30am

Social NetworkingSocial Networkingwww.twitter.com/www.twitter.com/ESRIDevSummitESRIDevSummit

•• Thursday at 8:30am Thursday at 8:30am --Catalina/Madera (Wyndham)Catalina/Madera (Wyndham)

tinyurl.com/tinyurl.com/ESRIDevSummitFBESRIDevSummitFB

Page 22: Building .NET Applications using the ArcGIS Server Web ADFproceedings.esri.com › library › userconf › devsummit09 › ... · Web ADF Data Sources • Common Data Source API

Want to Learn More?Want to Learn More?ESRI Training and Education ResourcesESRI Training and Education Resources

•• InstructorInstructor--Led TrainingLed Training–– Developing Applications with ArcGIS Server Using the Microsoft .NET FrameworkDeveloping Applications with ArcGIS Server Using the Microsoft .NET Frameworkp g pp gp g pp g

•• Free Web Training SeminarsFree Web Training Seminars–– Building Applications with ArcGIS Server Using the Microsoft .NET FrameworkBuilding Applications with ArcGIS Server Using the Microsoft .NET Framework–– Implementing Security for ArcGIS Server .NET SolutionsImplementing Security for ArcGIS Server .NET Solutions–– Leveraging OGC Capabilities in ArcGIS Server 9.3Leveraging OGC Capabilities in ArcGIS Server 9.3

http://www.esri.com/traininghttp://www.esri.com/training