11 Using the Google Maps API. 2 Objectives You will be able to Use the Google Maps API to display a map of any location on an HTML page. Programatically.

Slides:



Advertisements
Similar presentations
Using EBSCOs Search Box Builder Tool Tutorial. Would you like to promote your EBSCOhost resources by adding an easy-to-use search box to your website?
Advertisements

1 After completing this lesson, you will be able to: Search for information on the Web. Create a favorites list. Use and modify your History folder.
Mapping With Second Site 2 Adding Homesteads & Migrations by David Walker Ottawa TMG Users Group 8 February 2009 by David Walker Ottawa TMG Users Group.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
1 After completing this lesson, you will be able to: Format text. Format numbers as currency. Use Format Painter. Add borders to cells. Add shading to.
Google Maps API. Today’s Objectives Get Google Maps working: desktop + mobile Get clustering data complete, data onto a map.
Chapter 3 Tables and Page Layout
Google Maps API L. Grewe. Google Maps Largest Mapping API One of the most popular web services Used in many web “mashup” applications Used on many platforms.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
PART III – MAKING YOUR BLOG DYNAMIC Adding Polls, Video Bars, Feeds, News Reels, and Cluster Maps. Also, learn how to embed video, audio, and documents.
Creating FrontPage Tasks The task view allows you to add information about what you want to accomplish when creating your Web site.
Google mapping tools in the newsroom Part 2 Highway Africa 2010 Compiled and presented by Jackie Rajuai.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
CST JavaScript Validating Form Data with JavaScript.
Highly Confidential – for UCRE Affiliate Use Only 2015 Regional Training Class Embedding maps on the listing page of your United Country office website.
Twitter is an excellent way to post your announcements on your website. This tutorial will give you a step by step on how to embed your school’s twitter.
Department of Information Technology e-Michigan Web Development 0 HTML Form Creation in the Vignette Content Management Application.
Instructional Guide. How does EasyBib make research easier? Citation Generation Easily create a bibliography in MLA, APA, and Chicago styles Export to.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic.
Google Maps API. Static Maps send an HTTP GET request receive an image (PNG, GIF, JPEG) no javascript needed encode params in URL example:
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.
How To Use Google Docs. 1. Go to the Google Docs website a) Go to b) Sign in using your username and password.
JavaScript Programming B.Ramamurthy 6/113/2014B. Ramamurthy CSE6511.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
Introduction to “Restored Coastal Habitats in Corpus Christi Bay” and CHRGIS Data Visualization  This site is complemented by the “Restored Shore and.
Enhancing Web Pages  Use Notepad to open any html file  Adding an Animation  Google search ‘free animation’  After saving one, add it to the web page.
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
Basic Editing Lesson 2.
Keriann Barry LIS 654.  The Geolocations plugin for Omeka provides a visual representation of an item’s location.  The administrator adds location data.
audio video object Options: controls autoplay Need to define height and width Options: controls autoplay.
Session: 19. © Aptech Ltd. 2HTML5 Geolocation and APIs / Session 19  Explain geolocation and its use in HTML5  Explain the Google Maps API  Explain.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
1 HTML Forms
Serif Part 2 Adding text popups to pictures Adding a rollover image Adding a popup rollover Adding a Voki.
Maps. Google Earth is a great resource, but is often blocked by school districts because of its size. Google maps and Bing maps share many of the features.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Save a Workbook as a Web Page Save a Workbook as a Web.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
Highly Confidential – for UCRE Affiliate Use Only 2015 Regional Training Embedding Maps into your listings on your United Country office website.
Geolocation Plugin
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
Static Locations, Dynamic Content.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
Implementation of Google Map in Drupal Create in Miyula Zeng, XiaoHang Zou,
Portaportal Portaportal is a web based bookmarking utility that lets you store links to your favorite websites online. Now your bookmarks are no longer.
Using Google Earth in the Classroom Amy Poland Information Taken from
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 User’s Guide Gaining Access to the Site & Using Bookmarks Site Display Features: At First Glance Site Content: Interactive Map & Report Boxes Site Functionality:
Creating a Google Doc A Quick Photo Tutorial. Sign in to Google Docs If you don’t already have an account, sign up for one, it’s FREE.
Google Map API The Google Maps API lets you embed Google Maps in your own web pages with JavaScript The API provides a number of utilities for manipulating.
Google Earth. Adding Folders 1. Control Click on My Places, 2. Click on Add or.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Power Point Technical Directions. Change Font: Size, Type, Color Size: –On the top toolbar, click on the arrow next to the number in a white box (not.
1 Using the Google Maps JavaScript API. 2 The Google Maps APIs Permit web applications to use functionality of google maps. Documentation:
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
1 Bus Tracker A Google Maps Application. 22 Objectives You will be able to Add an icon to a map created with the Google Maps API. Use Ajax techniques.
New NWS Online Spot Program
Part III – Making Your Blog Dynamic
Adding a File to a Course
Google Maps: A Short How-to
Where in the uSA? Using Google Maps
Introduction to Google Maps
JavaScript Programming Labs
YOUR text YOUR text YOUR text YOUR text
Publisher Tutorial.
Presentation transcript:

11 Using the Google Maps API

2 Objectives You will be able to Use the Google Maps API to display a map of any location on an HTML page. Programatically modify the location and zoom level of the map.

33 The Google Maps API Permits web applications to use functionality of google maps. Tutorial:

4 Getting Started Create a new Empty Web Site in Visual Studio. Google_Maps_Demo.NET Framework 3.5 Add an HTML page. Map.html

55 Google Maps Tutorial Scroll down

6 Obtaining an API Key No longer necessary. Ignore for now. Scroll down to Hello, World

7 Hello World You can copy and paste from this page, but some modification is necessary.

8 html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } <script type="text/javascript" src=" function initialize() { var myOptions = { center: new google.maps.LatLng( , ), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); }

10 Map Options function initialize() { var myOptions = { center: new google.maps.LatLng( , ), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); } How can we determine latitude and longitude of the place we want to map?

11 Search for Desired Location

12 Right click on the red "A" pin and select "What's here"

13 Lat-Long appears in the Address search bar. Copy and paste into script.

14 Set Lat-Long

15 Map with New Center Location Set zoom to 15

16 Adjust Zoom Level

17 Campus Map

Satellite Image

Zoom in More

20 Adding Our Own Stuff Let’s add text entry boxes to show and set the latitude and longitude. Latitude: Longitude: <input type="button" id="Set" value="Set" onclick="Set_Position();" name="btnSetPosition" />

21 Show New Position At end of function initialize(), still inside the function body : google.maps.event.addListener(map, "idle", function() { var center = map.getCenter().toString(); var latlong = center.split(","); var tbLat = document.getElementById("tbLat"); tbLat.value = latlong[0].substring(1,8); latitude = tbLat.value; var tbLong = document.getElementById("tbLong"); tbLong.value = latlong[1].substring(0,9); longitude = tbLong.value; });

22 Let the User Set the Position Add to the script below function initialize: function Set_Position() { var tbLat = document.getElementById("tbLat"); var tbLong = document.getElementById("tbLong"); latitude = tbLat.value; longitude = tbLong.value; map.setCenter( new google.maps.LatLng(latitude,longitude )); } Remove var from map = new google.maps.Map()

23 Lat-Long Displayed

24 Setting the Position Type lat-long into the text boxes Click “Set” Let’s look at Miami Latitude Longitude

25 Miami

26 Find the Lat/Long of the Empire State Building Zoom out Move to NYC Zoom in Move to 5 th Ave and 34 th Street

27 Locate NYC

28 Zooming In

29 April 2009

30 Dec. 2009

31 April 2010

32 April 2011

The Empire State Building (April 2011)

The Empire State Building (July 2012)