SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Downloaden Sie, um offline zu lesen
Google Maps API 101 
Sebastian Roming 
GDG Black Forest
What do I need? 
- your favourite IDE 
- Access to the Internet 
That’s all!
http://developers.google.com
Resources 
-
Basics 
Loading Maps API to your website: 
<script src='https://maps.googleapis.com/maps/api/js?sensor=false'> 
</script> 
Create a Map Container 
<div id='mapContainer'></div>
Basics 
<script> 
var mapObject; 
function initMap() { 
mapObject = new google.maps.Map( document.getElementById 
('mapContainer'), { 
center: new google.maps.LatLng(48.210, 8.515), 
zoom: 14 
}); 
} 
google.maps.event.addDomListener(window, 'load', initMap); 
</script> 
Our Map Container
<!DOCTYPE html> 
<html> 
<head> 
<meta charset ='utf-8'> 
<title> Google Maps API 101 - Example 1 </title> 
<script src='https://maps.googleapis.com/maps/api/js?sensor=false '></script> 
<style> #mapContainer { width:800px; height:400px; } </style> 
</head> 
<body> 
<div id='mapContainer '></div> 
<script> 
var mapObject; 
function initMap () { 
mapObject = new google.maps.Map(document.getElementById ('mapContainer '), { 
center: new google.maps.LatLng (48.210 , 8.515), 
zoom: 14 
}); 
} 
google.maps.event.addDomListener (window, ' load', initMap ); 
</script> 
</body> 
</html> 
Working!
Extend 
Adding a marker to the map 
var marker = new google.maps.Marker({ 
position: new google.maps.LatLng(48.210, 8.515), 
map: mapObject 
});
Features 
- Map styling 
- Custom shapes / markers 
- StreetView 
- Places 
- Geocoding 
- many, many more...
Style your map 
- Adding / removing controls 
- Positioning the controls 
- Adding overlays 
- … 
Be creative, everything is possible!
Translate address to coordinates 
(or vice versa) 
var geocoder = new google.maps.Geocoder(); 
[...] 
Sends request and gets google.maps. 
GeocoderStatus and a result (if there is 
one). 
Geocoding
DrawingManager 
Can draw shapes and markers 
var drawing = new google.maps.drawing.DrawingManager({ 
drawingControlOptions: { 
position: google.maps.ControlPosition.TOP_CENTER 
} 
});
Need to know 
Object google.maps = 42!
Want more? 
Gentlemen, start your IDE. 
Let´s code.
Thank you. 
@sebastianroming 
github.com/sebastianroming 
github.com/GDGBlackForest

Weitere ähnliche Inhalte

Was ist angesagt?

GeoNerdsDC Presentation 2011-08-02
GeoNerdsDC Presentation 2011-08-02GeoNerdsDC Presentation 2011-08-02
GeoNerdsDC Presentation 2011-08-02Glenn Waldron
 
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3DFOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3DGlenn Waldron
 
Using SharePoint's Geolocation Field - SPSUK 2014
Using SharePoint's Geolocation Field - SPSUK 2014Using SharePoint's Geolocation Field - SPSUK 2014
Using SharePoint's Geolocation Field - SPSUK 2014Mark Stokes
 
Mapping with Drupal and OpenLayers
Mapping with Drupal and OpenLayersMapping with Drupal and OpenLayers
Mapping with Drupal and OpenLayersthomasturnbull
 
Google Cloud lightning talk @MHacks
Google Cloud lightning talk @MHacksGoogle Cloud lightning talk @MHacks
Google Cloud lightning talk @MHackswesley chun
 
Android Kit Kat - Printing Framework
Android Kit Kat - Printing FrameworkAndroid Kit Kat - Printing Framework
Android Kit Kat - Printing FrameworkPaul Lammertsma
 
Responsive Maps in WordPress
Responsive Maps in WordPressResponsive Maps in WordPress
Responsive Maps in WordPressAlicia Duffy
 
Printing photos-html-using-android
Printing photos-html-using-androidPrinting photos-html-using-android
Printing photos-html-using-androidKetan Raval
 
Hands on with the Google Maps Data API
Hands on with the Google Maps Data APIHands on with the Google Maps Data API
Hands on with the Google Maps Data APIss318
 
Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)wesley chun
 
Webgl para JavaScripters
Webgl para JavaScriptersWebgl para JavaScripters
Webgl para JavaScriptersgerbille
 

Was ist angesagt? (13)

GeoNerdsDC Presentation 2011-08-02
GeoNerdsDC Presentation 2011-08-02GeoNerdsDC Presentation 2011-08-02
GeoNerdsDC Presentation 2011-08-02
 
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3DFOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
 
Using SharePoint's Geolocation Field - SPSUK 2014
Using SharePoint's Geolocation Field - SPSUK 2014Using SharePoint's Geolocation Field - SPSUK 2014
Using SharePoint's Geolocation Field - SPSUK 2014
 
Mapping with Drupal and OpenLayers
Mapping with Drupal and OpenLayersMapping with Drupal and OpenLayers
Mapping with Drupal and OpenLayers
 
Google Cloud lightning talk @MHacks
Google Cloud lightning talk @MHacksGoogle Cloud lightning talk @MHacks
Google Cloud lightning talk @MHacks
 
Android Kit Kat - Printing Framework
Android Kit Kat - Printing FrameworkAndroid Kit Kat - Printing Framework
Android Kit Kat - Printing Framework
 
Make Android development easier
Make Android development easierMake Android development easier
Make Android development easier
 
Responsive Maps in WordPress
Responsive Maps in WordPressResponsive Maps in WordPress
Responsive Maps in WordPress
 
Printing photos-html-using-android
Printing photos-html-using-androidPrinting photos-html-using-android
Printing photos-html-using-android
 
Hands on with the Google Maps Data API
Hands on with the Google Maps Data APIHands on with the Google Maps Data API
Hands on with the Google Maps Data API
 
@Ionic native/google-maps
@Ionic native/google-maps@Ionic native/google-maps
@Ionic native/google-maps
 
Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)
 
Webgl para JavaScripters
Webgl para JavaScriptersWebgl para JavaScripters
Webgl para JavaScripters
 

Andere mochten auch

Integrating Google APIs into Your Applications
Integrating Google APIs into Your ApplicationsIntegrating Google APIs into Your Applications
Integrating Google APIs into Your ApplicationsChris Schalk
 
Google Maps API for Android
Google Maps API for AndroidGoogle Maps API for Android
Google Maps API for AndroidMaksim Golivkin
 
Google Maps Presentation
Google Maps PresentationGoogle Maps Presentation
Google Maps PresentationDavid Kamerer
 
Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011
Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011
Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011NPOX
 
óCeánok, tengerek varázsa(7)+ani (nx power lite)
óCeánok, tengerek varázsa(7)+ani (nx power lite)óCeánok, tengerek varázsa(7)+ani (nx power lite)
óCeánok, tengerek varázsa(7)+ani (nx power lite)VarganeAnny
 
Social Media: What Is It? Why You Need Strategy & How To Get It.
Social Media: What Is It? Why You Need Strategy & How To Get It.Social Media: What Is It? Why You Need Strategy & How To Get It.
Social Media: What Is It? Why You Need Strategy & How To Get It.Ben Finch
 
CREMP TECH OAP
CREMP TECH OAPCREMP TECH OAP
CREMP TECH OAPcremptech
 
N ds tanzania-presentation2
N ds tanzania-presentation2N ds tanzania-presentation2
N ds tanzania-presentation2Julien Grollier
 
Gerunds and infinitives
Gerunds and infinitivesGerunds and infinitives
Gerunds and infinitivesjolehidy6
 
Een therapie voor geluidsovergevoeligheid (Hyperacusis) en Tinnitus
Een therapie voor geluidsovergevoeligheid (Hyperacusis) en TinnitusEen therapie voor geluidsovergevoeligheid (Hyperacusis) en Tinnitus
Een therapie voor geluidsovergevoeligheid (Hyperacusis) en TinnitusRené Voortwist
 
Book vernissage rashid-s_kaukab
Book vernissage rashid-s_kaukabBook vernissage rashid-s_kaukab
Book vernissage rashid-s_kaukabJulien Grollier
 
N ds uganda-presentation2
N ds uganda-presentation2N ds uganda-presentation2
N ds uganda-presentation2Julien Grollier
 
Csodás világ(4)+ani (nx powerlite)
Csodás világ(4)+ani (nx powerlite)Csodás világ(4)+ani (nx powerlite)
Csodás világ(4)+ani (nx powerlite)VarganeAnny
 
Keukenhof virágai(1)+ani (nx power lite)
Keukenhof virágai(1)+ani (nx power lite)Keukenhof virágai(1)+ani (nx power lite)
Keukenhof virágai(1)+ani (nx power lite)VarganeAnny
 
Collaboration sig-pitch
Collaboration sig-pitchCollaboration sig-pitch
Collaboration sig-pitchDaniela Papi
 

Andere mochten auch (20)

Integrating Google APIs into Your Applications
Integrating Google APIs into Your ApplicationsIntegrating Google APIs into Your Applications
Integrating Google APIs into Your Applications
 
Google Maps API for Android
Google Maps API for AndroidGoogle Maps API for Android
Google Maps API for Android
 
Google Maps
Google MapsGoogle Maps
Google Maps
 
Google Maps Presentation
Google Maps PresentationGoogle Maps Presentation
Google Maps Presentation
 
Isoft web
Isoft webIsoft web
Isoft web
 
Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011
Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011
Marcel Peek, Nederland 1, Presentatie #NPOX Slots & Genres 2011
 
óCeánok, tengerek varázsa(7)+ani (nx power lite)
óCeánok, tengerek varázsa(7)+ani (nx power lite)óCeánok, tengerek varázsa(7)+ani (nx power lite)
óCeánok, tengerek varázsa(7)+ani (nx power lite)
 
Venecia
VeneciaVenecia
Venecia
 
Social Media: What Is It? Why You Need Strategy & How To Get It.
Social Media: What Is It? Why You Need Strategy & How To Get It.Social Media: What Is It? Why You Need Strategy & How To Get It.
Social Media: What Is It? Why You Need Strategy & How To Get It.
 
CREMP TECH OAP
CREMP TECH OAPCREMP TECH OAP
CREMP TECH OAP
 
Kenya presentation2
Kenya presentation2Kenya presentation2
Kenya presentation2
 
N ds tanzania-presentation2
N ds tanzania-presentation2N ds tanzania-presentation2
N ds tanzania-presentation2
 
Gerunds and infinitives
Gerunds and infinitivesGerunds and infinitives
Gerunds and infinitives
 
Een therapie voor geluidsovergevoeligheid (Hyperacusis) en Tinnitus
Een therapie voor geluidsovergevoeligheid (Hyperacusis) en TinnitusEen therapie voor geluidsovergevoeligheid (Hyperacusis) en Tinnitus
Een therapie voor geluidsovergevoeligheid (Hyperacusis) en Tinnitus
 
Book vernissage rashid-s_kaukab
Book vernissage rashid-s_kaukabBook vernissage rashid-s_kaukab
Book vernissage rashid-s_kaukab
 
N ds uganda-presentation2
N ds uganda-presentation2N ds uganda-presentation2
N ds uganda-presentation2
 
Csodás világ(4)+ani (nx powerlite)
Csodás világ(4)+ani (nx powerlite)Csodás világ(4)+ani (nx powerlite)
Csodás világ(4)+ani (nx powerlite)
 
Keukenhof virágai(1)+ani (nx power lite)
Keukenhof virágai(1)+ani (nx power lite)Keukenhof virágai(1)+ani (nx power lite)
Keukenhof virágai(1)+ani (nx power lite)
 
Living Well with Cancer
Living Well with CancerLiving Well with Cancer
Living Well with Cancer
 
Collaboration sig-pitch
Collaboration sig-pitchCollaboration sig-pitch
Collaboration sig-pitch
 

Ähnlich wie Google Maps API 101

Gmaps Railscamp2008
Gmaps Railscamp2008Gmaps Railscamp2008
Gmaps Railscamp2008xilinus
 
How data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesHow data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesElectronic Arts / DICE
 
Barcamp GoogleMaps - praktické ukázky kódu
Barcamp GoogleMaps - praktické ukázky kóduBarcamp GoogleMaps - praktické ukázky kódu
Barcamp GoogleMaps - praktické ukázky kóduMilos Lenoch
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece CoLab Athens
 
The Future of CSS with Web components
The Future of CSS with Web componentsThe Future of CSS with Web components
The Future of CSS with Web componentsdevObjective
 
The Future of CSS with Web Components
The Future of CSS with Web ComponentsThe Future of CSS with Web Components
The Future of CSS with Web ComponentsColdFusionConference
 
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)Future Insights
 
Grails : Ordr, Maps & Charts
Grails : Ordr, Maps & ChartsGrails : Ordr, Maps & Charts
Grails : Ordr, Maps & ChartsHenk Jurriens
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivityAhsanul Karim
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTOCARTO
 
Angular server side rendering - Strategies & Technics
Angular server side rendering - Strategies & Technics Angular server side rendering - Strategies & Technics
Angular server side rendering - Strategies & Technics Eliran Eliassy
 
executive-mba-pune.pdf
executive-mba-pune.pdfexecutive-mba-pune.pdf
executive-mba-pune.pdfAjit4903
 
Sapo GIS Hands-On
Sapo GIS Hands-OnSapo GIS Hands-On
Sapo GIS Hands-Oncodebits
 
Gis SAPO Hands On
Gis SAPO Hands OnGis SAPO Hands On
Gis SAPO Hands Oncodebits
 
Recoil at Codete Webinars #3
Recoil at Codete Webinars #3Recoil at Codete Webinars #3
Recoil at Codete Webinars #3Mateusz Bryła
 
Cloud Endpoints _Polymer_ Material design by Martin Görner
Cloud Endpoints_Polymer_Material design by Martin GörnerCloud Endpoints_Polymer_Material design by Martin Görner
Cloud Endpoints _Polymer_ Material design by Martin GörnerEuropean Innovation Academy
 
Mobile Application Development for the Web Developer
Mobile Application Development for the Web DeveloperMobile Application Development for the Web Developer
Mobile Application Development for the Web DeveloperCraig Johnston
 

Ähnlich wie Google Maps API 101 (20)

Gmaps Railscamp2008
Gmaps Railscamp2008Gmaps Railscamp2008
Gmaps Railscamp2008
 
Intro To Google Maps
Intro To Google MapsIntro To Google Maps
Intro To Google Maps
 
How data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesHow data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield Heroes
 
Barcamp GoogleMaps - praktické ukázky kódu
Barcamp GoogleMaps - praktické ukázky kóduBarcamp GoogleMaps - praktické ukázky kódu
Barcamp GoogleMaps - praktické ukázky kódu
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
 
The Future of CSS with Web components
The Future of CSS with Web componentsThe Future of CSS with Web components
The Future of CSS with Web components
 
The Future of CSS with Web Components
The Future of CSS with Web ComponentsThe Future of CSS with Web Components
The Future of CSS with Web Components
 
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
AngularJS: The Bridge Between Today and Tomorrow's Web (Todd Motto)
 
Grails : Ordr, Maps & Charts
Grails : Ordr, Maps & ChartsGrails : Ordr, Maps & Charts
Grails : Ordr, Maps & Charts
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTO
 
Angular server side rendering - Strategies & Technics
Angular server side rendering - Strategies & Technics Angular server side rendering - Strategies & Technics
Angular server side rendering - Strategies & Technics
 
Code to Add Google Map to Websites
Code to Add Google Map to WebsitesCode to Add Google Map to Websites
Code to Add Google Map to Websites
 
executive-mba-pune.pdf
executive-mba-pune.pdfexecutive-mba-pune.pdf
executive-mba-pune.pdf
 
Introduction to angular js
Introduction to angular jsIntroduction to angular js
Introduction to angular js
 
Sapo GIS Hands-On
Sapo GIS Hands-OnSapo GIS Hands-On
Sapo GIS Hands-On
 
Gis SAPO Hands On
Gis SAPO Hands OnGis SAPO Hands On
Gis SAPO Hands On
 
Recoil at Codete Webinars #3
Recoil at Codete Webinars #3Recoil at Codete Webinars #3
Recoil at Codete Webinars #3
 
Cloud Endpoints _Polymer_ Material design by Martin Görner
Cloud Endpoints_Polymer_Material design by Martin GörnerCloud Endpoints_Polymer_Material design by Martin Görner
Cloud Endpoints _Polymer_ Material design by Martin Görner
 
Mobile Application Development for the Web Developer
Mobile Application Development for the Web DeveloperMobile Application Development for the Web Developer
Mobile Application Development for the Web Developer
 

Kürzlich hochgeladen

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 

Kürzlich hochgeladen (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Google Maps API 101

  • 1. Google Maps API 101 Sebastian Roming GDG Black Forest
  • 2. What do I need? - your favourite IDE - Access to the Internet That’s all!
  • 5. Basics Loading Maps API to your website: <script src='https://maps.googleapis.com/maps/api/js?sensor=false'> </script> Create a Map Container <div id='mapContainer'></div>
  • 6. Basics <script> var mapObject; function initMap() { mapObject = new google.maps.Map( document.getElementById ('mapContainer'), { center: new google.maps.LatLng(48.210, 8.515), zoom: 14 }); } google.maps.event.addDomListener(window, 'load', initMap); </script> Our Map Container
  • 7. <!DOCTYPE html> <html> <head> <meta charset ='utf-8'> <title> Google Maps API 101 - Example 1 </title> <script src='https://maps.googleapis.com/maps/api/js?sensor=false '></script> <style> #mapContainer { width:800px; height:400px; } </style> </head> <body> <div id='mapContainer '></div> <script> var mapObject; function initMap () { mapObject = new google.maps.Map(document.getElementById ('mapContainer '), { center: new google.maps.LatLng (48.210 , 8.515), zoom: 14 }); } google.maps.event.addDomListener (window, ' load', initMap ); </script> </body> </html> Working!
  • 8. Extend Adding a marker to the map var marker = new google.maps.Marker({ position: new google.maps.LatLng(48.210, 8.515), map: mapObject });
  • 9. Features - Map styling - Custom shapes / markers - StreetView - Places - Geocoding - many, many more...
  • 10. Style your map - Adding / removing controls - Positioning the controls - Adding overlays - … Be creative, everything is possible!
  • 11. Translate address to coordinates (or vice versa) var geocoder = new google.maps.Geocoder(); [...] Sends request and gets google.maps. GeocoderStatus and a result (if there is one). Geocoding
  • 12. DrawingManager Can draw shapes and markers var drawing = new google.maps.drawing.DrawingManager({ drawingControlOptions: { position: google.maps.ControlPosition.TOP_CENTER } });
  • 13. Need to know Object google.maps = 42!
  • 14. Want more? Gentlemen, start your IDE. Let´s code.
  • 15. Thank you. @sebastianroming github.com/sebastianroming github.com/GDGBlackForest