Tutorial: Using ArcGIS Server and ESRI ArcGIS API for Javascript Peter Sforza March 7, 2013.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Geo GIS Practicuum Introduction to ArcGIS 8 Exercise 5 - ESRI Virtual Campus Chapters 1-2, ArcGIS Methods …
Learning the Basics – Lesson 1
Cascading Style Sheets
Images, Tables, lists, blocks, layout, forms, iframes
ESRI Geoportal Extension 10 November 2010 Out-of-the-box capabilities and additional options.
Mercator/Coronelli ArcGIS Server 9.3 Data Management GIS Web Services Mapping Application Developer Tools Spatial Analysis Publishing to Clients Image.
Technical Support: (989) GIS and Mapping Procedures in ArcMap 9.x Creating an ArcMap Project Editing an ArcMap Project Printing an ArcMap Project.
4.01 Cascading Style Sheets
ArcEditor ArcInfo ArcView Display map, query & analyze spatial relationships, features & attributes Same functions as ArcView, plus abilty to create, &
ArcGIS Extensions Expanding the Use of ArcGIS
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 2: Working with Webpage Files.
Sharing imagery and raster data in ArcGIS
Sharing Geographic Content
Getting Started with Dreamweaver
Intro to MIS – MGS351 Building a Webpage. Chapter Overview m The World Wide Web – Web servers, Web browsers and Web pages m HTML Introduction m Using.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
Introduction to ArcGIS API for JavaScript
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
CM143Web Week 8 Review of Assignment 1 Revision & Elaboration.
Web Mapping Seth Peery, Senior GIS Architect
Enabling High-Quality Printing in Web Applications
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Introduction to web development and HTML MGMT 230 LAB.
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
audio video object Options: controls autoplay Need to define height and width Options: controls autoplay.
1 More About HTML Tables and Images. 22 Objectives You will be able to Create tables in HTML. Include images in your HTML page. Create links to other.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
Esri UC 2014 | Technical Workshop | Creating Geoprocessing Services Kevin Hibma.
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
Photoshop Image Slicing. Reasons to Image Slide To create links out of sliced images To optimise different areas. (flat areas of colour, such as logos,
AGB 3/26/121 ++=. 2 Yes, believe it or not this is a complete webpage. It has a Head, Title and Body between the start and end HTML Tag.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Working with CAD Data In ArcGIS Travis Wagner. New Features Adds CAD datasets as group layers –Still have the ability to access all feature types properties.
©2010 AIR WORLDWIDE 1 Using ArcGIS Server Web Map Services in Web Map Mash-Ups Benjamin Spaulding, Ph.D. AIR Worldwide Esri Boston Dev Meet-Up 12/8/2010.
Positioning Objects with CSS and Tables
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Publishing GIS Services to ArcGIS Server
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
COMP 143 Web Development with Adobe Dreamweaver CC.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
Objective % Select and utilize tools to design and develop websites.
Geography 385 Introduction to ArcGIS Web Application Design
Learning the Basics – Lesson 1
Objective % Select and utilize tools to design and develop websites.
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Putting An Image on Your Web Page
Cascading Style Sheets™ (CSS)
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
GIS Lecture: Sharing GIS
Introduction to JavaScript
Presentation transcript:

Tutorial: Using ArcGIS Server and ESRI ArcGIS API for Javascript Peter Sforza March 7, 2013

Map Network Drive

\\training.gis.vt.edu\geog5984 Or \\arcgislab.cntrlsrvs.w2k.vt.edu\geog5984

Username: ARCGISLAB\geog5984 Password: w3bM4PS

Create Folders in “/data/class2013” and “/websites/class2013” individual projects “/data/class2013/yourLastName” “/websites/class2013/yourLastName” group projects “/data/class2013/yourProjectName” “/websites/class2013/yourProjectName”

The directory structure on the shared drive is the basis for the organization of your resources. /data directory is for shapefiles and MXDs, /websites directory is for web content. Anything you put in /websites will be immediately and publicly viewable on the Internet as:

Viewing the REST endpoint URL Viewing Web Maps URL The directory structure on the shared drive is the basis for the organization of your resources. The /data directory is for shapefiles and MXDs, and the /websites directory is for web content. Anything you put in /websites will be immediately and publicly viewable on the Internet. You should create a subfolder in /data and a subfolder in /websites for your individual and group projects. You and the public can access your completed web maps using the URL above.

ESRI ArcGIS Server Manager URLhttp://arcgislab.cntrlsrvs.w2k.vt.edu/arcgis/managerhttp://arcgislab.cntrlsrvs.w2k.vt.edu/arcgis/manager usernamearcgislab\geog5984 *Use this to set up services, including name, type, and tile cache scheme. Password = w3bM4PS

Access to the Network Drive is limited. You should be able to map a drive from any of the machines in MW 102 / Cheatham 220. If you need to connect from off campus, you will need to use the Virtual Private Network (VPN). More info about establishing VPN access can be found here: net_access/vpn.html net_access/vpn.html Cache schemes are defined in ArcManager. However, actually initiating the build of a cache (the creation of tile images) must be done through ArcCatalog.

ArcGIS Server Create MXD Publish service Consume in a web page using a mapping api Publish a geoprocessing tool

Store relative pathnames to data sources Make sure your.mxd is projected in the coordinate system you plan to use for your tiling scheme and/or web API. For example, Google Maps uses WGS_1984_Web Mercator. Avoid embedding services within services, including ArcGIS Online or other base maps available in ArcMap

set a data frame background color – Frame -> Data Frame Properties – The default background is NULL – The map service treats the background color as transparent

Coordinate System Match the tiling scheme or web mapping API coordinate system

Common Web Map API coordinate systems Google Maps API v3WGS84 Web MercatorWKID ArcGIS OnlineWeb Mercator Auxiliary SphereWKID OpenStreetMap

Definition Query Improves performance by avoiding rendering

Symbology Color Brewer

Reference Scale Data frame fixes the size for symbols and text to draw at the desired height and width at the referenced map scale Not typically used in web maps, but sometimes it is needed

Scale Dependent Rendering Specifies the range of scales to display a layer

Transfer your MXD Close ArcGIS before moving or copying files Move to your folder on the training server

ArcGIS Server Manager Username: arcgislab\geog5984 Password: w3bM4PS

Publish a GIS Resource

Select your MXD

Publish the service into the /2013 folder

Select service types

Note the URLs provided for the web services below are not the same URL as the REST endpoint for the MapServer. For this example, the REST endpoint that will be used in your HTML page to call the map service is The REST endpoint for the training server is

The Map Service is ready

A MapServer

WMS Server

/websites Directory This class should use the /class2013 folder

ESRI Javascript API stutorials/#intro_firstmap stutorials/#intro_firstmap There is a Sandbox for testing your code andbox/sandbox.html?sample=map_create andbox/sandbox.html?sample=map_create

Building the HTML / JS HTML HEAD and BODY Reference the ArcGIS API for javascript Define initialization function Create the Map Define the Page Content Style the Page

Reference the ArcGIS API for JavaScript inside the HEAD element Esri.css styles for the widgets Claro.css formatting for the widgets (other style sheet options include claro, tundra, soria and nihilo)

Initialization Function new script tag – this is where you add code for working with maps and tasks dojo.require to load the esri.map module Function init() { } dojo.addOnLoad (init);

Create the map Esri.map refers to the full map class for the ESRI ArcGIS API for javascript mapDIV is the DIV element that contains the map in the body section of the code basemap options you can specify such as "satellite", "hybrid", "topo", "gray", "ocean", "osm", and "national_geographic"

Define Page Content Define the BODY section which contains everything that will be displayed on your page The DIV named “mapDiv” refers to the variable that was set in the esri.map constructor

Page Style Writing a bit of CSS to get the map to fill the browser window html,body,#mapDiv,.map.container{ padding:0; margin:0; height:100%; }

Add your map service This belongs in function (init) var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer(" edu/arcgis/rest/services/2013/FCC/MapServer"); map.addLayer(dynamicMapServiceLayer);

Final steps Save the HTML in your /websites folder View the page