SlideShare a Scribd company logo
1 of 22
Download to read offline
Marko Letić

@NisamProgramer
May 12th 2020
sphere.it
IN 30 LINES OF CODE
INTERACTIVE MAPS
ABOUT ME
• DEVELOPER ADVOCATE AND FRONT END LEAD @AVA
• TECH SPEAKER @MOZILLA
• CONFERENCE ORGANIZER @ARMADA JS
• ”WORKING” ON MY PHD IN DATA VISUALIZATION
• JAVASCRIPT ENTHUSIAST
• I ALSO LOVE CSS!
• TWITTER: @NisamProgramer
WHY MAPS?
• MAPS REPRESENT THE REAL WORLD ON A MUCH SMALLER SCALE
• HELP YOU VIRTUALLY TRAVEL FROM ONE LOCATION TO ANOTHER
• FIGURE OUT WHERE YOU ARE AND WHERE YOU WANT TO GO
• MAPS TELL YOU WHAT IS AROUND YOU
• EFFECTIVE WAY TO PRESENT GEOGRAPHIC DATA TO YOUR USERS
• MAPS ARE BEAUTIFUL
AGENDA
• TOOLS AND FRAMEWORKS AVAILABLE TODAY
• USAGE EXAMPLES
• HOW AND WHERE TO GET THE DATA
• VIEW THE DATA
• HOW TO CREATE THE SVG MAP
• HOW TO USE IT
Google maps
Mapbox
OTHERS
MAPS ARE BEAUTIFUL
http://noheroes.ghostrecon.com/
https://deck.gl/#/examples/core-layers/trips-layer
http://www.welcometofillory.com/
HOW TO CHOOSE?
• WHAT TYPE OF BUSINESS AM I RUNNING?
• WHAT’S THE SIZE OF MY BUSINESS?
• WHAT PART OF THE WORLD IS MY PROJECT FOCUSED ON?
https://vdata.nikkei.com/en/newsgraphics/coronavirus-china-map/
WHY SVG MAPS?
• LIGHTWEIGHT
• CUSTOMIZABLE
• FREE TO USE
• EASY TO STYLE
GET THE DATA
• GEOGRAPHIC DATA FOR COUNTRY BORDERS
• NATURAL EARTH http://www.naturalearthdata.com/
• FREE TO USE
• GREAT AT COUNTRY OR PROVINCE LEVEL
• NOT HIGH ENOUGH RESOLUTION TO SHOW THE NEIGHBORHOODS OR STREEL LEVELS
ZIP FILE - 200 KB
VIEW THE DATA
• DOWNLOAD AND INSTALL QGIS https://www.qgis.org/en/site/index.html
• GEOGRAPHIC INFORMATION SYSTEM SOFTWARE
• VERY POWERFUL AND PACKED WITH FEATURES
CREATE THE SVG MAP
kartograph config.json -o map.svg
Input file name Output file name
• INSTALL Kartograph.py http://kartograph.org/about/kartograph.py/
• LIGHTWEIGHT PYTHON LIBRARY
• BUILT BY Gregor Aisch
• USES JSON CONFIGURATION FILE
EXAMPLES
REFERENCES
• Inspired by: 

“A Guide To Building SVG Maps From Natural Earth Data” article by Chris Youderian

https://www.smashingmagazine.com/2015/09/making-svg-maps-from-natural-earth-data/
• SVG 101: What is SVG? https://www.sitepoint.com/svg-101-what-is-svg/
• Mapbox blog https://blog.mapbox.com/
• Nightingale: The Journal of the Data Visualization Society https://medium.com/nightingale
• Book recommendation:

The Phantom Atlas: The Greatest Myths, Lies and Blunders on Maps by Edward Brooke-Hitching
Marko Letić

@NisamProgramer
May 12th 2020
sphere.it
IN 30 LINES OF CODE
INTERACTIVE MAPS
THANK YOU!

More Related Content

What's hot

Living Content - Smart Data - Esri UK Annual Conference 2017
Living Content - Smart Data - Esri UK Annual Conference 2017Living Content - Smart Data - Esri UK Annual Conference 2017
Living Content - Smart Data - Esri UK Annual Conference 2017Esri UK
 
An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...
An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...
An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...Esri UK
 
Garsdale Design - Smart Data - Esri UK Annual Conference 2017
Garsdale Design - Smart Data - Esri UK Annual Conference 2017Garsdale Design - Smart Data - Esri UK Annual Conference 2017
Garsdale Design - Smart Data - Esri UK Annual Conference 2017Esri UK
 
Gathering information through web applications - Smart Collaboration - Esri U...
Gathering information through web applications - Smart Collaboration - Esri U...Gathering information through web applications - Smart Collaboration - Esri U...
Gathering information through web applications - Smart Collaboration - Esri U...Esri UK
 
Sharing information through web applications - Smart Collaboration - Esri UK ...
Sharing information through web applications - Smart Collaboration - Esri UK ...Sharing information through web applications - Smart Collaboration - Esri UK ...
Sharing information through web applications - Smart Collaboration - Esri UK ...Esri UK
 

What's hot (6)

Rieke van Leeuwen; Thesauri en het semantisch web
Rieke van Leeuwen; Thesauri en het semantisch webRieke van Leeuwen; Thesauri en het semantisch web
Rieke van Leeuwen; Thesauri en het semantisch web
 
Living Content - Smart Data - Esri UK Annual Conference 2017
Living Content - Smart Data - Esri UK Annual Conference 2017Living Content - Smart Data - Esri UK Annual Conference 2017
Living Content - Smart Data - Esri UK Annual Conference 2017
 
An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...
An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...
An Intro to Analysis in ArcGIS Pro - Smart Analytics - Esri UK Annual Confere...
 
Garsdale Design - Smart Data - Esri UK Annual Conference 2017
Garsdale Design - Smart Data - Esri UK Annual Conference 2017Garsdale Design - Smart Data - Esri UK Annual Conference 2017
Garsdale Design - Smart Data - Esri UK Annual Conference 2017
 
Gathering information through web applications - Smart Collaboration - Esri U...
Gathering information through web applications - Smart Collaboration - Esri U...Gathering information through web applications - Smart Collaboration - Esri U...
Gathering information through web applications - Smart Collaboration - Esri U...
 
Sharing information through web applications - Smart Collaboration - Esri UK ...
Sharing information through web applications - Smart Collaboration - Esri UK ...Sharing information through web applications - Smart Collaboration - Esri UK ...
Sharing information through web applications - Smart Collaboration - Esri UK ...
 

Similar to Interactive maps in 30 lines of code

Trail of Two Maps
Trail of Two MapsTrail of Two Maps
Trail of Two MapsMetroCog
 
[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...
[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...
[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...Badita Florin
 
CartoHeritage 2011: Georeferencer & MapRank Search
CartoHeritage 2011: Georeferencer & MapRank SearchCartoHeritage 2011: Georeferencer & MapRank Search
CartoHeritage 2011: Georeferencer & MapRank SearchPetr Pridal
 
Demolitions and Dali : Web Dev and Data in a Graph Database
Demolitions and Dali : Web Dev and Data in a Graph DatabaseDemolitions and Dali : Web Dev and Data in a Graph Database
Demolitions and Dali : Web Dev and Data in a Graph DatabaseNicholas Doiron
 
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web AppsGIS in the Rockies
 
Sharing historical maps and atlases in web apps
Sharing historical maps and atlases in web appsSharing historical maps and atlases in web apps
Sharing historical maps and atlases in web appsAileen Buckley
 
Webmapping: maps for presentation, exploration & analysis
Webmapping: maps for presentation, exploration & analysisWebmapping: maps for presentation, exploration & analysis
Webmapping: maps for presentation, exploration & analysisTimelessFuture
 
ArchaeoSTOR Map: Publishing archaeological geodata on the web
ArchaeoSTOR Map: Publishing archaeological geodata on the webArchaeoSTOR Map: Publishing archaeological geodata on the web
ArchaeoSTOR Map: Publishing archaeological geodata on the webYuma Matsui
 
Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...
Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...
Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...Esri UK
 
Maps4 finland 28.8.2012, pekka sarkola
Maps4 finland 28.8.2012, pekka sarkolaMaps4 finland 28.8.2012, pekka sarkola
Maps4 finland 28.8.2012, pekka sarkolaOlli Rinne
 
Maps4Finland 28.8.2012, Pekka Sarkola
Maps4Finland 28.8.2012, Pekka SarkolaMaps4Finland 28.8.2012, Pekka Sarkola
Maps4Finland 28.8.2012, Pekka SarkolaApps4Finland
 
My experience and suggestions as a web-GIS developer
My experience and suggestions as a web-GIS developerMy experience and suggestions as a web-GIS developer
My experience and suggestions as a web-GIS developerTek Kshetri
 
JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...
JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...
JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...JSFestUA
 

Similar to Interactive maps in 30 lines of code (20)

Trail of Two Maps
Trail of Two MapsTrail of Two Maps
Trail of Two Maps
 
Maps
MapsMaps
Maps
 
Map and GIS Data for 21st Century Research
Map and GIS Data for 21st Century ResearchMap and GIS Data for 21st Century Research
Map and GIS Data for 21st Century Research
 
[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...
[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...
[EN] Maps and Digital Tools For Activists [RO] Hărți și instrumente digitale ...
 
CartoHeritage 2011: Georeferencer & MapRank Search
CartoHeritage 2011: Georeferencer & MapRank SearchCartoHeritage 2011: Georeferencer & MapRank Search
CartoHeritage 2011: Georeferencer & MapRank Search
 
Demolitions and Dali : Web Dev and Data in a Graph Database
Demolitions and Dali : Web Dev and Data in a Graph DatabaseDemolitions and Dali : Web Dev and Data in a Graph Database
Demolitions and Dali : Web Dev and Data in a Graph Database
 
About Scanning and Metadata Standards - NEMO 2010
About Scanning and Metadata Standards - NEMO 2010About Scanning and Metadata Standards - NEMO 2010
About Scanning and Metadata Standards - NEMO 2010
 
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
 
Sharing historical maps and atlases in web apps
Sharing historical maps and atlases in web appsSharing historical maps and atlases in web apps
Sharing historical maps and atlases in web apps
 
Neos CMS and SEO
Neos CMS and SEONeos CMS and SEO
Neos CMS and SEO
 
Webmapping: maps for presentation, exploration & analysis
Webmapping: maps for presentation, exploration & analysisWebmapping: maps for presentation, exploration & analysis
Webmapping: maps for presentation, exploration & analysis
 
Making MAGIC with Your Data: Interactive Maps, Mash-ups, and Data Visualizati...
Making MAGIC with Your Data: Interactive Maps, Mash-ups, and Data Visualizati...Making MAGIC with Your Data: Interactive Maps, Mash-ups, and Data Visualizati...
Making MAGIC with Your Data: Interactive Maps, Mash-ups, and Data Visualizati...
 
ArchaeoSTOR Map: Publishing archaeological geodata on the web
ArchaeoSTOR Map: Publishing archaeological geodata on the webArchaeoSTOR Map: Publishing archaeological geodata on the web
ArchaeoSTOR Map: Publishing archaeological geodata on the web
 
Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...
Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...
Break on Through (To The Java(Script) Side) - Smart Development - Esri UK Ann...
 
Geocart workshop
Geocart workshopGeocart workshop
Geocart workshop
 
Maps4 finland 28.8.2012, pekka sarkola
Maps4 finland 28.8.2012, pekka sarkolaMaps4 finland 28.8.2012, pekka sarkola
Maps4 finland 28.8.2012, pekka sarkola
 
Maps4Finland 28.8.2012, Pekka Sarkola
Maps4Finland 28.8.2012, Pekka SarkolaMaps4Finland 28.8.2012, Pekka Sarkola
Maps4Finland 28.8.2012, Pekka Sarkola
 
My experience and suggestions as a web-GIS developer
My experience and suggestions as a web-GIS developerMy experience and suggestions as a web-GIS developer
My experience and suggestions as a web-GIS developer
 
Open in Geo? Opening Geo!
Open in Geo? Opening Geo!Open in Geo? Opening Geo!
Open in Geo? Opening Geo!
 
JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...
JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...
JS Fest 2019/Autumn. Marko Letic. Saving the world with JavaScript: A Data Vi...
 

Recently uploaded

WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIInflectra
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypseTomasz Kowalczewski
 
Novo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNovo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNeo4j
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024SimonedeGijt
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConNatan Silnitsky
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfryanfarris8
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)Roberto Bettazzoni
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2WSO2
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 

Recently uploaded (20)

WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST API
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
Novo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNovo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMs
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeCon
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 

Interactive maps in 30 lines of code

  • 1. Marko Letić
 @NisamProgramer May 12th 2020 sphere.it IN 30 LINES OF CODE INTERACTIVE MAPS
  • 2. ABOUT ME • DEVELOPER ADVOCATE AND FRONT END LEAD @AVA • TECH SPEAKER @MOZILLA • CONFERENCE ORGANIZER @ARMADA JS • ”WORKING” ON MY PHD IN DATA VISUALIZATION • JAVASCRIPT ENTHUSIAST • I ALSO LOVE CSS! • TWITTER: @NisamProgramer
  • 3. WHY MAPS? • MAPS REPRESENT THE REAL WORLD ON A MUCH SMALLER SCALE • HELP YOU VIRTUALLY TRAVEL FROM ONE LOCATION TO ANOTHER • FIGURE OUT WHERE YOU ARE AND WHERE YOU WANT TO GO • MAPS TELL YOU WHAT IS AROUND YOU • EFFECTIVE WAY TO PRESENT GEOGRAPHIC DATA TO YOUR USERS • MAPS ARE BEAUTIFUL
  • 4. AGENDA • TOOLS AND FRAMEWORKS AVAILABLE TODAY • USAGE EXAMPLES • HOW AND WHERE TO GET THE DATA • VIEW THE DATA • HOW TO CREATE THE SVG MAP • HOW TO USE IT
  • 12. HOW TO CHOOSE? • WHAT TYPE OF BUSINESS AM I RUNNING? • WHAT’S THE SIZE OF MY BUSINESS? • WHAT PART OF THE WORLD IS MY PROJECT FOCUSED ON?
  • 14. WHY SVG MAPS? • LIGHTWEIGHT • CUSTOMIZABLE • FREE TO USE • EASY TO STYLE
  • 15. GET THE DATA • GEOGRAPHIC DATA FOR COUNTRY BORDERS • NATURAL EARTH http://www.naturalearthdata.com/ • FREE TO USE • GREAT AT COUNTRY OR PROVINCE LEVEL • NOT HIGH ENOUGH RESOLUTION TO SHOW THE NEIGHBORHOODS OR STREEL LEVELS
  • 16. ZIP FILE - 200 KB
  • 17. VIEW THE DATA • DOWNLOAD AND INSTALL QGIS https://www.qgis.org/en/site/index.html • GEOGRAPHIC INFORMATION SYSTEM SOFTWARE • VERY POWERFUL AND PACKED WITH FEATURES
  • 18.
  • 19. CREATE THE SVG MAP kartograph config.json -o map.svg Input file name Output file name • INSTALL Kartograph.py http://kartograph.org/about/kartograph.py/ • LIGHTWEIGHT PYTHON LIBRARY • BUILT BY Gregor Aisch • USES JSON CONFIGURATION FILE
  • 21. REFERENCES • Inspired by: 
 “A Guide To Building SVG Maps From Natural Earth Data” article by Chris Youderian
 https://www.smashingmagazine.com/2015/09/making-svg-maps-from-natural-earth-data/ • SVG 101: What is SVG? https://www.sitepoint.com/svg-101-what-is-svg/ • Mapbox blog https://blog.mapbox.com/ • Nightingale: The Journal of the Data Visualization Society https://medium.com/nightingale • Book recommendation:
 The Phantom Atlas: The Greatest Myths, Lies and Blunders on Maps by Edward Brooke-Hitching
  • 22. Marko Letić
 @NisamProgramer May 12th 2020 sphere.it IN 30 LINES OF CODE INTERACTIVE MAPS THANK YOU!