SlideShare a Scribd company logo
1 of 19
Mapstraction JavaScript mapping abstraction library Adam DuVander mapscripting.com adamduvander.com
Google Maps! Yeah!
Yahoo Maps. Okay.
// Basic Google Map, with Marker point = new GLatLng(37.780764,-122.395592) map = new GMap2(document.getElementById("map-canvas")); map.setCenter(point, 15, G_NORMAL_MAP); marker = new GMarker(point, markerOptions); map.addOverlay(marker); // Basic Yahoo Map, with Marker var map = new YMap(document.getElementById("ymap")); map.drawZoomAndCenter("Portland, OR", 6); var myMarker = new YMarker("622 SE Grand Ave, Portland, OR"); map.addOverlay(myMarker);
11 Maps in One! FreeEarth Google Map24 MapQuest Microsoft MultiMap OpenLayers OpenSpace OpenStreetMap ViaMichelin Yahoo
About me Portland Web Innovators First Wednesdays, pdxwi.com
About me
Why Mapstraction?
 
 
 
Isn't Mapstraction a LCD library?
Not Really
 
 
 
Open Closed
switch (this.api) { case 'yahoo': var ypin = this.proprietary_marker; ypin.closeSmartWindow(); break; case 'google': var gpin = this.proprietary_marker; gpin.closeInfoWindow(); break; case 'microsoft': var pin = this.proprietary_marker; this.map.HideInfoBox(); break; ... }
More about Mapstraction mapstraction.com (join the mailing list) Follow my book progress mapscripting.com Thank you! adamduvander.com @adamd

More Related Content

Similar to Mapstraction: JavaScript Mapping Abstraction Library (9)

Grails : Ordr, Maps & Charts
Grails : Ordr, Maps & ChartsGrails : Ordr, Maps & Charts
Grails : Ordr, Maps & Charts
 
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
 
Google Maps API
Google Maps APIGoogle Maps API
Google Maps API
 
Google Maps API 101
Google Maps API 101Google Maps API 101
Google Maps API 101
 
Google Maps JS API
Google Maps JS APIGoogle Maps JS API
Google Maps JS API
 
Google Maps API
Google Maps APIGoogle Maps API
Google Maps API
 
GeoTechTalk InkSatogaeri Project
GeoTechTalk InkSatogaeri ProjectGeoTechTalk InkSatogaeri Project
GeoTechTalk InkSatogaeri Project
 
Y Map Mashup Camp
Y Map Mashup CampY Map Mashup Camp
Y Map Mashup Camp
 
executive-mba-pune.pdf
executive-mba-pune.pdfexecutive-mba-pune.pdf
executive-mba-pune.pdf
 

More from duvander

APIs: The Wiring Behind the Cloud
APIs: The Wiring Behind the CloudAPIs: The Wiring Behind the Cloud
APIs: The Wiring Behind the Cloud
duvander
 
The New API: Apps, Partners and Income
The New API: Apps, Partners and IncomeThe New API: Apps, Partners and Income
The New API: Apps, Partners and Income
duvander
 
Open Geo Stacks for the Web
Open Geo Stacks for the WebOpen Geo Stacks for the Web
Open Geo Stacks for the Web
duvander
 

More from duvander (20)

Give Every Developer a Quick Start
Give Every Developer a Quick StartGive Every Developer a Quick Start
Give Every Developer a Quick Start
 
APIs at Scale: Humans and Machines
APIs at Scale: Humans and MachinesAPIs at Scale: Humans and Machines
APIs at Scale: Humans and Machines
 
PIE for Sale: Timeless Lessons in API Advocacy
PIE for Sale: Timeless Lessons in API AdvocacyPIE for Sale: Timeless Lessons in API Advocacy
PIE for Sale: Timeless Lessons in API Advocacy
 
API Content Marketing
API Content MarketingAPI Content Marketing
API Content Marketing
 
The Architect is Not Convinced
The Architect is Not ConvincedThe Architect is Not Convinced
The Architect is Not Convinced
 
How to Evaluate an API Without Writing a Line of Code
How to Evaluate an API Without Writing a Line of CodeHow to Evaluate an API Without Writing a Line of Code
How to Evaluate an API Without Writing a Line of Code
 
The Rise of Pareto-as-a-Service
The Rise of Pareto-as-a-ServiceThe Rise of Pareto-as-a-Service
The Rise of Pareto-as-a-Service
 
5 or 6 API Adoption Strategies
5 or 6 API Adoption Strategies5 or 6 API Adoption Strategies
5 or 6 API Adoption Strategies
 
YES, APIs Make You Special
YES, APIs Make You SpecialYES, APIs Make You Special
YES, APIs Make You Special
 
The New API at SXSW 2013
The New API at SXSW 2013The New API at SXSW 2013
The New API at SXSW 2013
 
Demystifying Distribution of Content-as-a-Service
Demystifying Distribution of Content-as-a-ServiceDemystifying Distribution of Content-as-a-Service
Demystifying Distribution of Content-as-a-Service
 
Make Your API Irresistible
Make Your API IrresistibleMake Your API Irresistible
Make Your API Irresistible
 
APIs: The Wiring Behind the Cloud
APIs: The Wiring Behind the CloudAPIs: The Wiring Behind the Cloud
APIs: The Wiring Behind the Cloud
 
The New API: Apps, Partners and Income
The New API: Apps, Partners and IncomeThe New API: Apps, Partners and Income
The New API: Apps, Partners and Income
 
Maps 4 Africa
Maps 4 AfricaMaps 4 Africa
Maps 4 Africa
 
Open Geo Stacks for the Web
Open Geo Stacks for the WebOpen Geo Stacks for the Web
Open Geo Stacks for the Web
 
Open Geo Stacks for the Web
Open Geo Stacks for the WebOpen Geo Stacks for the Web
Open Geo Stacks for the Web
 
The Innovative APIs Fueling Location on the Web
The Innovative APIs Fueling Location on the WebThe Innovative APIs Fueling Location on the Web
The Innovative APIs Fueling Location on the Web
 
Map Scripting & Design
Map Scripting & DesignMap Scripting & Design
Map Scripting & Design
 
Zoom in on Mapping and Location
Zoom in on Mapping and LocationZoom in on Mapping and Location
Zoom in on Mapping and Location
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 

Mapstraction: JavaScript Mapping Abstraction Library

  • 1. Mapstraction JavaScript mapping abstraction library Adam DuVander mapscripting.com adamduvander.com
  • 4. // Basic Google Map, with Marker point = new GLatLng(37.780764,-122.395592) map = new GMap2(document.getElementById("map-canvas")); map.setCenter(point, 15, G_NORMAL_MAP); marker = new GMarker(point, markerOptions); map.addOverlay(marker); // Basic Yahoo Map, with Marker var map = new YMap(document.getElementById("ymap")); map.drawZoomAndCenter("Portland, OR", 6); var myMarker = new YMarker("622 SE Grand Ave, Portland, OR"); map.addOverlay(myMarker);
  • 5. 11 Maps in One! FreeEarth Google Map24 MapQuest Microsoft MultiMap OpenLayers OpenSpace OpenStreetMap ViaMichelin Yahoo
  • 6. About me Portland Web Innovators First Wednesdays, pdxwi.com
  • 9.  
  • 10.  
  • 11.  
  • 12. Isn't Mapstraction a LCD library?
  • 14.  
  • 15.  
  • 16.  
  • 18. switch (this.api) { case 'yahoo': var ypin = this.proprietary_marker; ypin.closeSmartWindow(); break; case 'google': var gpin = this.proprietary_marker; gpin.closeInfoWindow(); break; case 'microsoft': var pin = this.proprietary_marker; this.map.HideInfoBox(); break; ... }
  • 19. More about Mapstraction mapstraction.com (join the mailing list) Follow my book progress mapscripting.com Thank you! adamduvander.com @adamd