GIS 2096 Introduction to Web Mapping & The WWW Google Maps & Google Mashups.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
HTML Basics Customizing your site using the basics of HTML.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
WeB application development
The Web Warrior Guide to Web Design Technologies
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
1 Chapter 12 Working With Access 2000 on the Internet.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Web Page Behavior IS 373—Web Standards Todd Will.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Microsoft Office XP Illustrated Introductory, Enhanced Office Applications with Internet Explorer Integrating.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
1 Lesson 1 Quick HTML Know-How HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Web Design Basic Concepts.
Web Page Introduction. What is a web page? A web page is a text file containing markup language tags. –A markup language combines text and extra information.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Chapter 1 Introduction to HTML, XHTML, and CSS
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Web Page Introduction. What is a web page? A web page is a text file containing markup language tags. –A markup language combines text and extra information.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to web development and HTML MGMT 230 LAB.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
NR 422: Maps on the web Jim Graham Spring Computer Networks 2 or more computers connected together Typically a: –Client: requests and receives data.
NR 422: Maps on the web Jim Graham Spring Computer Networks 2 or more computers connected together Typically a: –Client: requests and receives data.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
GeoSpatial Analysis UNICEF Security Advisors Workshop 20 October 2010.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Getting Started with HTML
Web Programming Language
Objective % Select and utilize tools to design and develop websites.
Mapping for the interwebs
Exploring Microsoft Word 2000
Objective % Select and utilize tools to design and develop websites.
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Introduction to Internet Programming
DHTML Javascript Internet Technology.
DHTML Javascript Internet Technology.
Tutorial 7 – Integrating Access With the Web and With Other Programs
CIS 133 mashup Javascript, jQuery and XML
Presentation transcript:

GIS 2096 Introduction to Web Mapping & The WWW Google Maps & Google Mashups

The World Wide Web Clients Servers Communication Networks Client Server

Applications that run on computers Rely on servers for – Files – Devices – Processing power Examples: – – Web Browser – FTP – ArcMap, QGIS Clients Clients are Applications

Servers Computers or processes that manage network resources – Disk drives (file servers) – Printers (print servers) – Web content (network servers) Example: Database Server – A computer system that processes database queries Servers Manage Resources

Client–Server Relationship Process takes place on the server and the client Servers – Store and protect data – Process requests from clients Clients – Make requests – Format data on the desktop Client-Server Computing Optimizes Computing Resources

What is a Google Map? Maps.google.com - interactive street, satellite, terrain maps and more.

What is Google Maps? An enormous amount of searchable geographic information (gazetteer) A way of organizing the worlds information geographically

What is a Google Map? Maps.google.com > MyMaps – create custom maps to share.

What is a Google Map? Google MyMaps – customize maps with user created enhancements.

Is Google Maps FOSS? No It is free of charge

What is Google Maps - summary A web mapping service, free for non-commercial use that contains: – Detailed global basemaps: streets, satellite imagery, and terrain. – Useful services such as address and place locating by searching against an information rich gazetteer. – Ability to overlay a wide variety of map layers, (weather, traffic) from static or dynamic sources. – Map layer creation and light customization through functionality through MyMaps. – An API that allows for embedding and extensive customization.

Application Programming Interface (API) API - An interface to a software program that allows users to interact and customize it. – Determines the vocabulary and calling conventions a programmer uses to employ the software services. – Usually based on an existing programming languages (C,.NET, VisualBasic, Java, javascript) – Many desktop and web software applications have API’s – Google Maps API uses javascript

Google Maps API Allows embedding of a Google map into one’s own web page using javascript. Free to use, on any website that is provided free of charge to others. Relatively gentle learning curve. Highly customizable and easily transferrable. Evolving - new functionality consistently being added.

What is a Mashup A web page or application that combines data or functionality from two or more external sources to create a new service. Therefore: MyWebPage + Google Map = mashup Even better: MyWebPage + Google Map + Other web service(s)

Google Map mashups examples: embeddable and customizable

Google Maps, Mashups, and Google Earth Differences and similarities Google Maps & MyMaps – A free web application (no software installation necessary) – 2 dimensional map view, with street, satellite, terrain basemaps – Data creation possible (points, lines, polygons), reads limited kml. – A selected set of map overlays and functions available. – Specific maps can be saved and shared easily on the web. Google Maps Mashups – A free service allowing one to embed a Google Map into a web page. – 2 dimensional map view, with street, satellite, terrain basemaps. – Highly customizable to include everything in MyMaps and more. – Customization requires using javascript and HTML. – Requires access to a web-server to publish to the web. Google Earth – A free desktop application (downloading and installation necessary). – 3 dimensional map view with satellite basemap, many map overlay layers, and a rich set of visualization tools. – Data creation possible (points, lines, polygons). – Complex kml creation is possible.

Google Maps, Mashups, and Google Earth Which one to use? Google Maps – Locating, measuring, or learning about the geography of a place. – If you want to share a map. – Communicate geographic information quickly. Google Maps Mashups – Used to embed a map into a new or existing website. – Create interactive web maps for your users. Google Earth – Visualizing terrain, 3d buildings, historical imagery, and access to many thematic map layers. – Virtual tour creation (movies) – Small amounts of data collection, geocoding, and image geo-referencing.

Axioms to follow for fledgling Google mappers If MyMaps or an existing mashup can be used to accomplish your web mapping goal, use it. In your internet browser, use “View > Page Source” to learn what code is used to produce a specific website. When coding, pay attention to every character. Comment your code thoroughly. Organize, document, and backup your maps and data. Other web map mashup API’s exist (Yahoo!, Microsoft, OpenLayers). If Google’s API doesn’t serve your needs, explore the others.

19 Web Mashup Definitions Mashup: A web application that performs browser- side integration of content or services from multiple sources Provider: site the provides content to the mashup

Markup languages Markup languages – Hyper Text Markup Language (HTML), Extensible Markup Language (XML), Keyhole Markup Language (KML), and many more… Text encoding schemes used to create and format a web document. Use tags contained within brackets <> to define formatting that web browsers read. Markup language code sample: This a new paragraph of text that is bold This text is new paragraph of text that is big This text is italic

HTML HyperText Markup Language What you create a web page in Consists of specific sections Content described by tags

HTML Tags Syntax content Standard Elements... Specifies the type of document... Title, Metadata, Scripts etc.... The main content of the page Comments

A Basic HTML Page favorites / bookmark title goes here My first page This is my first web page and I can say anything I want in here - I do that by putting text or images in the body section - where I'm typing right now :)

HTML Tags A Few Common HTML Tags … Web page title – Head section … Paragraph – basic text in Body section … Anchors – hyperlinks... To embed a script – e.g. javascript … Creates a table … Creates a table row … Creates and populates a table cell … Divide document into sections

Basics of an HTML page The Head section: Where you define the title of your web page Include metadata for your page so search engines like Google and Yahoo can find your page Style sheets (CSS) and scripts (javascript) Blah blah blah title …

Basics of an HTML page The Body section: Where you put most of your content

Javascript Javascript: Typically a “client side” programming language used primarily in web browsers Used to provide dynamic content to a web page Uses variables, loops, and functions to generate output on the web. Allows for the development of enhanced user interfaces and dynamic websites. Javascript code sample (Adds a placemark on a Google map) function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } var point = new GLatLng( ,-106); var marker = createMarker(point,’Info in Window’); gmap.addOverlay(marker);

Javascript function message() { alert("This alert box was called with the onload event"); } //Comment We usually use the head section for functions (to be sure that the functions are loaded before they are called).

Explanations of the Basic Google Maps Code

Google Map Code This first javascript is a critical script element. It’s src attribute points to the location of the API on Google’s server, and your key is passed as a parameter. GoogleMaps use javascript to call the Google server and to provide specific parameters for your mashup

Google Map Code

Function calls in the element Onload=“load()” While an HTML page renders, the document object model (DOM) is built out, and any external images and scripts are received and incorporated into the document object. To ensure that our map is only placed on the page after the page has fully loaded, we only execute the function which constructs the GMap2 object once the element of the HTML page receives an onload event. Doing so avoids unpredictable behavior and gives us more control on how and when the map draws. The onload attribute is an example of an event handler. The Google Maps API also provides a number of events that you can "listen" for to determine state changes. Onunload=“Gunload() The GUnload() function is a utility function designed to prevent memory leaks. This just means that all running functions are cleaned up when you close the browser or leave the page.

Google Map Code The rest of the element The html created by Open Office with our text contained in paragraph tags A tag which defines divisions in a web document The start of a The “map” holding the map Closing tags

Google Resources Google Maps API Sign Up Google Maps API Documentation Google App Engine Google Map Books Map Builder

35 Mashup Examples housingmaps.com Wii Finder Clockr popurls.com Yahoo vs. Google Google Gadgets

Objectives: 1) In 2 hour, hands on, interactive session, learn how to create and customize a Google map mashup. 2) Learn a few fundamentals of programming, and gain insight into what skills and knowledge are required to be a successful Google map masher. 3) Learn the differences between Google MyMaps, mashups, and Google Earth and when to use each. Google Lab

Lab 6 Open Firefox Go to Click on Google Maps tutorials