Google Maps API. Today’s Objectives Get Google Maps working: desktop + mobile Get clustering data complete, data onto a map.

Slides:



Advertisements
Similar presentations
JavaScript Chapter 6 Note new scoring. spin.js (page 67) function spin() function spin() { var obj_style = document.getElementById("d1").style; var obj_style.
Advertisements

Google Fusion Tables API Inneke Ponet. Google Fusion Tables: Store, share, query and visualize data. API to run SQL-like queries applications that use.
Quick Start Guide Amanda Jackson. Me Turn on the API service Get an API key - optional Tile your image Write your code Look at the pretty new map online.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Basic Calendar Something that would make your web page look very nice is a basic calendar. A basic calendar shows the currents days of the month. This.
HTML5 Demo ISYS 350. HTML 5 validation/#.UdytIOLn_zc validation/#.UdytIOLn_zc.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
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.
Lines and Polygons Peterson. Simple Line function initialize() { var myLatLng = new google.maps.LatLng(5, -170); var myOptions = { zoom: 2, center: myLatLng,
The GMap class exports methods to manipulate the map's center and zoom level and to add and remove overlays (such as GMarker and GPolyline instances).
Map Layer Mashups Peterson. Overlay of Old Map function initialize() { var newark = new google.maps.LatLng(40.740, ); var imageBounds = new google.maps.LatLngBounds(
Point Mashups Peterson. Icons Info Marker Random Points.
CHAPTER 26 CREATING LOCATION-AWARE WEBPAGES USING GEOLOCATION.
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.
Google mapping tools in the newsroom Part 2 Highway Africa 2010 Compiled and presented by Jackie Rajuai.
Session ID Presented by: Tom Jamate, University of Massachusetts, Amherst April 8, 2013 Session ID 2521 Going Beyond the Address Push-Pin Extending.
Hammond Sanitary District Interactive Web Mapping with Google Maps and Google Apps An Introduction to KML, Google Fusion Tables, and the Google Maps API.
CS 174: Web Programming April 21 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
Kids Code Bewdley Primary School 22 nd February 2012.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Set 11: Mashups (emphasis on Google tools) IT452 Advanced Web and Internet Systems.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
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 Programming B.Ramamurthy 6/113/2014B. Ramamurthy CSE6511.
Banners - HTML A banner is a zip-package containing a HTML file, CSS file, and optionally JavaScript file and assets in a asset directory. The banner is.
Programming Games Google Map API examples. CSS. Classwork/homework: Catch up. Upload work. Show your [more] complex Google Maps API example. Plan your.
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
Tutorial: Using ArcGIS Server and ESRI ArcGIS API for Javascript Peter Sforza March 7, 2013.
How data rule the world Kristoffer Benjaminsson CTO.
 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.
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
Q&A TGEL Group 3/2009. SelectorGadget
Session: 19. © Aptech Ltd. 2HTML5 Geolocation and APIs / Session 19  Explain geolocation and its use in HTML5  Explain the Google Maps API  Explain.
Dr. Martin Zhao Sept 4, Topics HTML and related tutorials on w3schools.com Related HTML tags Adding interesting features using JavaScript What is.
12 Point Mashups Mapping in the Cloud Peterson. Icons.
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.
Adding maps, widgets, searchbox Week 07 TCNJ Web 2 Jean Chu.
Geolocation Plugin
Creating Interfaces Show form validation examples, Hangman. HTML5 with Google Maps API. Add in localStorage. Design pitfalls. Homework: Make proposal for.
Static Locations, Dynamic Content.
14 Lines and Polygons Mapping in the Cloud Peterson.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
16 Map Layer Mashups Mapping in the Cloud Peterson.
Click to edit Master subtitle style Java Developer Conference 2010 Hazem Saleh Ed Burns Mashups in the JavaServer Faces World.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
Open-Source JavaScript Maps with Leaflet Will Abson
Industry case study: Data Eric Brumer 2/19/2014. Agenda Belltower Books Belltower Books Trucking: backend & frontend Google maps & javascript.
1 Using the Google Maps JavaScript API. 2 The Google Maps APIs Permit web applications to use functionality of google maps. Documentation:
Point Maps Peterson’s Chapter 11 & 12. Points and Point Maps Points – Datum and coordinate systems – geocoding Point Maps – Show where points are (just.
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
Google Maps API. Contents: 1. Google Maps API Key 2. Create a Basic Google Map 3. Google Maps Overlays 4. Google Maps Events 5. Google Maps Controls 6.
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.
Google Maps API v3: Built First for Mobile Susannah Raub Google June 24, 2010.
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
ISC440: Web Programming 2 Web APIs Google Maps API
Using Tables in Canvas.
Mapping for the interwebs
Web Services application that operates over a network
العدد تذكيره وتأنيثه مقدمة
JavaScript: Array, Loop, Data File
Google Maps: A Short How-to
HEATHER HALL & ADRIENNE SPITZER
Introduction to Google Maps
QUICK-START Guide: Embed GIS Map FIR in Web Page
Introduction To Leaflet.js
JavaScript Programming Labs
Web Programming Anselm Spoerri PhD (MIT) Rutgers University
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

Google Maps API

Today’s Objectives Get Google Maps working: desktop + mobile Get clustering data complete, data onto a map

Documentation ation/javascript/tutorial.html ation/javascript/tutorial.html Watch out for v2 api tutorials V3 is HTML5 to support desktop + mobile stuff

Why Google Maps Data / Visualizations Driving directions, integration SEO (wait, how)

Embedding a Map #1 html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 400px; width: 600px;}

Embedding a Map #2 function initialize() { var latlng = new google.maps.LatLng( , ); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.HYBRID }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); }

Embedding a Map #3

In Class Get a Map on a page.

Adding Pins (Google calls the markers) var pinpoint = new google.maps.LatLng( , ); var pin = new google.maps.Marker({ position: pinpoint, map: > )}

Add info balloons …with listeners var infowindow = new google.maps.InfoWindow({‘Imma balloon’}); google.maps.event.addListener(pinpoint, 'click', function() { infowindow.open(map,marker); });

Adding lots of markers… Arrays! Loop over array of points Have an array of Markers var pinpoint = new google.maps.LatLng(points[i][lat], points[i][lon]); var infowindow = new google.maps.InfoWindow({‘points[i][desc]’}); markers[i] = new Array(pinpoint, infowindow);

Other stuff Polygons – vascript/examples/circle-simple.html vascript/examples/circle-simple.html Overlays – vascript/overlays.html vascript/overlays.html – vascript/examples/groundoverlay-simple.html vascript/examples/groundoverlay-simple.html Custom Control – In V3 we style google controls – In V2 you add listeners to any HTML object

More in class Get JSON feed from clustering team I’m feeling a bit lost – Author code that can create multiple markers from a JSON feed I’m feeling a bit bored – Author code that can create multiple circles from a JSON feed, each representing a cluster center – Set the size of the circle to represent the # of people in that cluster