1 Using the Google Maps JavaScript API. 2 The Google Maps APIs Permit web applications to use functionality of google maps. Documentation: https://developers.google.com/maps/documentation/

Slides:



Advertisements
Similar presentations
PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Advertisements

Support.ebsco.com EBSCOadmin Branding Tutorial. Welcome to the EBSCOadmin Skinning and Branding tutorial, where you will learn how to customize EBSCOhost.
Symbaloo Save, access, and share all of your online resources in one central location!
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.
MS-Word XP Lesson 2. Page Setup & Margins 1.Click on file menu 2.Click on page set up menu item 3.Select margins tab sheet (default activated) 4.Type.
Refresher Instruction Guide Strategic Planning and Assessment Module
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
Web Page Development Identify elements of a Web Page Start Notepad
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.
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.
Compliance Assist Refresher Instruction Guide Adding or Editing Unit/College Strategic Goals.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Adding an image to a page in Dreamweaver Uploading files to x10hosting Editing uploaded files in x10hosting Adding links in Dreamweaver Uploading linked.
Highly Confidential – for UCRE Affiliate Use Only 2015 Regional Training Class Embedding maps on the listing page of your United Country office website.
HTML Links and Anchors.
Department of Information Technology e-Michigan Web Development 0 HTML Form Creation in the Vignette Content Management Application.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Creating your Webpage with tables. This is a 2 column by 1 row table!
Adding Content To Your Faculty Page 1.Login 2.Create your Faculty Page 3.
Adding applications to your website..  Review inserting clip art and animations into a content editor web part  Change little “3 amigos” icon in top.
 In My.Wartburg you can add…  YouTube Videos  Films on Demand (Vogel Lib.)  Internet Pages With a Video  Anything with a URL (
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.
A Power Point Presentation For... A Power Point Presentation ( click to advance slides )
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.
Course Settings MOODLE. Getting Started This is a quick start guide to Setting up a Moodle Course. This part of the course documents and outlines:- Course.
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.
A guide for WTPS staff. Overview This document will show you how to link your Remind and Twitter feeds with your Schoolwires website. Post ONCE to either.
1. 2 Introductions  Name?  What do you want to get out of this session?  To follow along with this presentation go to
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
Moodle with Style Integrating new technologies to empower learning and transform leadership.
Singapore Schools Sports Council User Guide. Table of Contents How To Login How To Logout How To Add Games Content (Same for ASG) How To Edit Games Content.
 HTML is hypertext markup language. It is a way for people to display their information with more complex pictures and text displays. Before HTML, messages.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
BIT 285: ( Web) Application Programming Lecture 18: Thursday, March 5, 2015 REST Creating a REST API Instructor: Craig Duckett.
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.
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.
A STUDENT’S GUIDE TO ADDING IMAGES TO NEW OR EXISTING BLOG POSTS Adding Images to Your Blog Post Presented by Michelle Krummel.
Compliance Assist Refresher Instruction Guide Adding or Editing Student Learning Outcomes.
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
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
Implementation of Google Map in Drupal Create in Miyula Zeng, XiaoHang Zou,
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
EFolio 401- Graduate Level Online Survey Online Survey Online Form Online Form Basic HTML programming Basic HTML programming Tables Tables Centering Graphics.
Web Development in Microsoft Visual Studio 2013 / 2015.
1 HTML Tables. 22 Objectives You will be able to Create tables in HTML.
Introduction to Technology. Parts of MSWord Screen Title Bar Quick Access Toolbar Button Ribbon Status Bar (views and zoom)
Positioning Objects with CSS and Tables
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1111 Master Pages Beginning ASP.NET in C# and VB Chapter 6.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
1 Word Processing Intermediate Using Microsoft Office 2000.
Mind Mapping with Bubbl.us. The Bubbl.us Homepage Click to create a bubbl.us account Sign in or, To access, type
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.
1 The Document Object Model. 2 Objectives You will be able to: Describe the structure of the W3C Document Object Model, or DOM. Use JavaScript to access.
Web Services application that operates over a network
JavaScript: Array, Loop, Data File
Google Maps: A Short How-to
Presenter Mindy Pistol Ext
Presentation transcript:

1 Using the Google Maps JavaScript API

2 The Google Maps APIs Permit web applications to use functionality of google maps. Documentation:

The Google Maps APIs 3 Click here

The Google Maps APIs 4 Click here

The Google Maps JavaScript API 5 Click here Scroll down

The Google Maps JavaScript API 6 Scroll down

7 Position cursor in this corner Click icon to copy html

8 Google's Hello, World Simple Map html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; }

Google's Hello, World (continued) var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: , lng: }, zoom: 8 }); } <script src=" async defer> 9

10 Maps_Demo Create a new ASP.NET Empty web site in Visual Studio.

11 Website > Add New Item Name: hello.html

12 Copy and Paste Google’s Hello World Page Select the Source tab in Visual Studio. Replace all default code in the page with the "Hello, World" page from google. Note Click to Copy link in upper right corner. Delete “key=_YOUR_API_KEY&” from line 29. Second script Click Play button.

13 Here it is!

14 Let’s look at a more interesting location var latitude = ; var longitude = ; var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: latitude, lng: longitude}, zoom: 8 }); } Modify first script (line 20) as follows:

15 Florida Map

16 Set zoom level to 14. function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: latitude, lng: longitude}, zoom: 14 }); }

17 Map of USF Area

18 A Bigger Map Expand the page to full screen. Zoom in. Click + icon in lower right corner

A Bigger Map 19

Zoom In 20 Click here

Satellite Image 21

Zoom in More 22

23 Adding Our Own Stuff Let’s add text entry boxes to show and set the latitude and longitude. Add at end of body: Latitude: Longitude: <input type="button" id="Set" value="Set" onclick="set();" name="btnSet" />

24 Show New Position At end of function initMap(), 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"); var end = latlong[1].indexOf(")"); tbLong.value = latlong[1].substring(0,end); longitude = tbLong.value; });

25

26 Let the User Set the Position Add below function initMap, but inside the same script: function set() { var tbLat = document.getElementById("tbLat"); var tbLong = document.getElementById("tbLong"); latitude = tbLat.value; longitude = tbLong.value; map.setCenter( new google.maps.LatLng(latitude,longitude )); }

27 Lat-Lng Displayed

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

29 Miami

30 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

31 Locate NYC

32 Zooming In

33 The Empire State Building

34 End of Section