SlideShare a Scribd company logo
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 2017
Esri 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 2017
Esri 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 Maps
MetroCog
 
Maps
MapsMaps
[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 Search
Petr 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 Database
Nicholas Doiron
 
About Scanning and Metadata Standards - NEMO 2010
About Scanning and Metadata Standards - NEMO 2010About 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
GIS 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 apps
Aileen Buckley
 
Neos CMS and SEO
Neos CMS and SEONeos CMS and SEO
Neos CMS and SEO
Sebastian Helzle
 
Webmapping: maps for presentation, exploration & analysis
Webmapping: maps for presentation, exploration & analysisWebmapping: maps for presentation, exploration & analysis
Webmapping: maps for presentation, exploration & analysis
TimelessFuture
 
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...
University of Connecticut Libraries Map and Geographic Information Center - MAGIC
 
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
Yuma 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
 
Geocart workshop
Geocart workshopGeocart workshop
Geocart workshop
Aileen Buckley
 
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 Sarkola
Apps4Finland
 
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
Tek Kshetri
 
Open in Geo? Opening Geo!
Open in Geo? Opening Geo!Open in Geo? Opening Geo!
Open in Geo? Opening Geo!
Open Knowledge Belgium
 
Visualizing large datasets with js using deckgl
Visualizing large datasets with js using deckglVisualizing large datasets with js using deckgl
Visualizing large datasets with js using deckgl
Marko Letic
 

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!
 
Visualizing large datasets with js using deckgl
Visualizing large datasets with js using deckglVisualizing large datasets with js using deckgl
Visualizing large datasets with js using deckgl
 

Recently uploaded

Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
Google
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Nidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, TipsNidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, Tips
vrstrong314
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 

Recently uploaded (20)

Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Nidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, TipsNidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, Tips
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 

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!