SlideShare a Scribd company logo
1 of 23
Download to read offline
Outline
               What is TileMill ?
                   TileMill components
                   TileMill interface

               Working with data
                   Importing data
                   Styling data
                   Adding tooltips & legend

               Exporting your data
                   Export as a file
                   Creating a web application

               Tips & Bonus

What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus   2/23
TileMill

                                                                       Design environment for making maps
                                                                                      Windows / Linux / Mac
                                                                                         BSD Licensed



            Based on among others




What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus                           3/23
Interface
  TileMill Interface




What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus   4/23
Interface
    TileMill Interface Components

1                  2                                                                                       5


                                                                                      4




                                      3




                                                                                          1 TileMill toolbar
                                                                                          2 Map toolbar
                                                                                          3 Map preview
                                                                                          4 Stylesheet editor
                                                                                          5 Project Toolbar
         6                                                                                6 Editing Toolbar



What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus                             5/23
Interface
  TileMill Layer Components                                                               1 Add a new layer
                                                                                          2 Geometry Type

                                      1                                                   3 Layer ID
                                                                                          4 Attributes
                                                                                          5 Zoom to layer extent
              2        3                         4 5 6 7 8
                                                                                          6 Toggle visibility
                                                                                          5 Edit layer settings
                                                                                          6 Delete Layer




What is TileMill   >       Working with data   > Exporting your data   >   Tips & Bonus                            6/23
Import data
    TileMill Add layer
                                                             Available formats :
                                                             ●
                                                                CSV
                                                             ●
                                                                ESRI Shapefle
                                                             ●
                                                               GeoJson
                                                             ●
                                                               KML
                                                             ●
                                                               GeoTIFF
                                                             ●
                                                               SQLite
                                                             ●
                                                               PostGIS

1                                                                        2




What is TileMill   >   Working with data   >   Exporting your data   >   Tips & Bonus   7/23
Find the good Colours
  Where to find your colours ?




                                                                                        http://colorschemedesigner.com/




  http://colorbrewer2.org/




Doc: http://mapbox.com/tilemill/docs/guides/tips-for-color/
What is TileMill   >   Working with data   >   Exporting your data   >   Tips & Bonus                              12/23
Add a legend
  Adding legend (A real one !)
  Using HTML and CSS to create a beautiful legend

                                           HTML                                                                  CSS
                                                                                               <style type='text/css'>
  <div class='my-legend'>                                                                       .wax-legend .legend-scale ul li {
         <div class='legend-title'>Population of the world</div>                                 display: block;
         <div class='legend-scale'>                                                              float: left;
                <ul class='legend-labels'>                                                       width: 50px;
                       <li><span style='background:rgb(255, 255, 178);'></span>Pop >= 0</li>     margin-bottom: 6px;
                       <li><span style='background:rgb(254, 204, 92);'></span> >= 30m</li>       text-align: center;
                       <li><span style='background:rgb(253, 141, 60);'></span>>= 300m</li>       font-size: 80%;
                       <li><span style='background:rgb(240, 59, 32);'></span>>= 500m</li>        list-style: none;
                       <li><span style='background:rgb(189, 0, 38);'></span>>= 1M</li>           }
                </ul>                                                                           .wax-legend ul.legend-labels li span {
         </div>                                                                                  display: block;
         <div class='legend-source'>Source: <a href="#link to source">                           float: left;
                Name of source</a>                                                               height: 15px;
         </div>                                                                                  width: 50px;
  </div>                                                                                         }
                                                                                               </style>




What is TileMill   >   Working with data   >   Exporting your data   >   Tips & Bonus                                         15/23
Export your project
  Formats
                                                                                        Available formats :
                                                                                        ●
                                                                                          Web Applciatio (Upload)
                                                                                        ●
                                                                                          PNG
                                                                                        ●
                                                                                          PDF
                                                                                        ●
                                                                                          SVG
                                                                                        ●
                                                                                          MBTiles
                                                                                        ●
                                                                                          Mapnik XML




                   “MBTiles is a file format for storing map tiles in a single file.
                                                 It is based on a SQLite database.”




What is TileMill   >   Working with data   >   Exporting your data   >   Tips & Bonus                          16/23
Publish your project
  MapBox Publish




What is TileMill   >   Working with data   >   Exporting your data   >   Tips & Bonus   18/23
Publish your project
MapBox JS
<!DOCTYPE html>
<html>
<head>
     <script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
     <link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
     <style>
            body { margin:0; padding:0; }
            #map { position:absolute; top:0; bottom:0; width:100%; }
     </style>
</head>
<body>                                                                                        http://mapbox.com/developers/
     <div id='map'></div>
     <script>
            mapbox.auto('map', 'geotribu.earthquake');
     </script>
</body>
</html>




                                                                                                                     19/23
Be creative
  Composite operation




    http://mapbox.com/blog/tilemill-compositing-operations-preview/
What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus   20/23
Be creative
  Composite operation




 http://mapbox.com/tilemill/docs/guides/comp-op/
 http://mapbox.com/blog/tilemill-compositing-operations-preview/




What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus   21/23
Tips
  Tips

                   Define and using variables                                                 Comment code

        @green-variable : #2B4D2D;                                            //this line will not be analyzed

        Map {                                                                 /*
             background-color : @green-variable;                                   This bloc will not be analyzed
        }                                                                     */
        #world {
             polygon-gill : @green-variable;                                  Useful to test or to comment your code !
        }
        #grass {
             polygon-gill : lighten(@green-variable,10%);
        }

                            More info: http://lesscss.org/




What is TileMill   >   Working with data   > Exporting your data   >   Tips & Bonus                                      22/23
Arnaud Vandecasteele
Memorial University of Newfoundland
Marine Geomatics Research Lab
http://www.marinegis.com/


      @Geotribu




                                      23/23

More Related Content

Viewers also liked

Global deforestation through time. Presentation at ESA
Global deforestation through time. Presentation at ESAGlobal deforestation through time. Presentation at ESA
Global deforestation through time. Presentation at ESAJavier de la Torre
 
Introduction to Volunteered Geographic Information and OpenStreetMap
Introduction to Volunteered Geographic Information and OpenStreetMapIntroduction to Volunteered Geographic Information and OpenStreetMap
Introduction to Volunteered Geographic Information and OpenStreetMaparno974
 
Past, Present and Future of WebMapping Application
Past, Present and Future of WebMapping ApplicationPast, Present and Future of WebMapping Application
Past, Present and Future of WebMapping Applicationarno974
 
Open Source GeoSpatial
Open Source GeoSpatialOpen Source GeoSpatial
Open Source GeoSpatialarno974
 
How Grandmas can now Map the World - Empowering Citizen Cartographers
How Grandmas can now  Map the World - Empowering  Citizen CartographersHow Grandmas can now  Map the World - Empowering  Citizen Cartographers
How Grandmas can now Map the World - Empowering Citizen Cartographersarno974
 
A semi-supervised learning framework based on spatio-temporal semantic events...
A semi-supervised learning framework based on spatio-temporal semantic events...A semi-supervised learning framework based on spatio-temporal semantic events...
A semi-supervised learning framework based on spatio-temporal semantic events...arno974
 
La Crosse Bike Summit Mar2010 Final
La Crosse Bike Summit Mar2010 FinalLa Crosse Bike Summit Mar2010 Final
La Crosse Bike Summit Mar2010 Finalckohner
 
Using Spatial Ontologies for Detecting Abnormal Maritime Behaviour
Using Spatial Ontologies for Detecting Abnormal Maritime BehaviourUsing Spatial Ontologies for Detecting Abnormal Maritime Behaviour
Using Spatial Ontologies for Detecting Abnormal Maritime Behaviourarno974
 
Cartographie collaborative : opportunités et limites Présentation de l’asso...
Cartographie collaborative : opportunités et limites Présentation de l’asso...Cartographie collaborative : opportunités et limites Présentation de l’asso...
Cartographie collaborative : opportunités et limites Présentation de l’asso...arno974
 
Rachel’s Potw Solution
Rachel’s Potw SolutionRachel’s Potw Solution
Rachel’s Potw SolutionEunjin Park
 
Social Media and the Job Hunt
Social Media and the Job HuntSocial Media and the Job Hunt
Social Media and the Job HuntJohn J Nosal
 
From Geographic Information to GIS
From Geographic Information to GISFrom Geographic Information to GIS
From Geographic Information to GISarno974
 
Apport des technologies spatiales pour la détection de comportements anormaux...
Apport des technologies spatiales pour la détection de comportements anormaux...Apport des technologies spatiales pour la détection de comportements anormaux...
Apport des technologies spatiales pour la détection de comportements anormaux...arno974
 
How Well Is Your Website Performing
How Well Is Your Website PerformingHow Well Is Your Website Performing
How Well Is Your Website PerformingJohn J Nosal
 
Making beautiful maps with Mapbox Studio by Charley Glynn
Making beautiful maps with Mapbox Studio by Charley GlynnMaking beautiful maps with Mapbox Studio by Charley Glynn
Making beautiful maps with Mapbox Studio by Charley GlynnShaun Lewis
 
Improving volunteered geographic data quality using semantic similarity measu...
Improving volunteered geographic data quality using semantic similarity measu...Improving volunteered geographic data quality using semantic similarity measu...
Improving volunteered geographic data quality using semantic similarity measu...arno974
 
Blackboard.ppt template
Blackboard.ppt templateBlackboard.ppt template
Blackboard.ppt templateCarm Macasling
 

Viewers also liked (19)

Global deforestation through time. Presentation at ESA
Global deforestation through time. Presentation at ESAGlobal deforestation through time. Presentation at ESA
Global deforestation through time. Presentation at ESA
 
Introduction to Volunteered Geographic Information and OpenStreetMap
Introduction to Volunteered Geographic Information and OpenStreetMapIntroduction to Volunteered Geographic Information and OpenStreetMap
Introduction to Volunteered Geographic Information and OpenStreetMap
 
Past, Present and Future of WebMapping Application
Past, Present and Future of WebMapping ApplicationPast, Present and Future of WebMapping Application
Past, Present and Future of WebMapping Application
 
Open Source GeoSpatial
Open Source GeoSpatialOpen Source GeoSpatial
Open Source GeoSpatial
 
Nasi lemak
Nasi lemakNasi lemak
Nasi lemak
 
How Grandmas can now Map the World - Empowering Citizen Cartographers
How Grandmas can now  Map the World - Empowering  Citizen CartographersHow Grandmas can now  Map the World - Empowering  Citizen Cartographers
How Grandmas can now Map the World - Empowering Citizen Cartographers
 
A semi-supervised learning framework based on spatio-temporal semantic events...
A semi-supervised learning framework based on spatio-temporal semantic events...A semi-supervised learning framework based on spatio-temporal semantic events...
A semi-supervised learning framework based on spatio-temporal semantic events...
 
La Crosse Bike Summit Mar2010 Final
La Crosse Bike Summit Mar2010 FinalLa Crosse Bike Summit Mar2010 Final
La Crosse Bike Summit Mar2010 Final
 
Using Spatial Ontologies for Detecting Abnormal Maritime Behaviour
Using Spatial Ontologies for Detecting Abnormal Maritime BehaviourUsing Spatial Ontologies for Detecting Abnormal Maritime Behaviour
Using Spatial Ontologies for Detecting Abnormal Maritime Behaviour
 
Cartographie collaborative : opportunités et limites Présentation de l’asso...
Cartographie collaborative : opportunités et limites Présentation de l’asso...Cartographie collaborative : opportunités et limites Présentation de l’asso...
Cartographie collaborative : opportunités et limites Présentation de l’asso...
 
Rachel’s Potw Solution
Rachel’s Potw SolutionRachel’s Potw Solution
Rachel’s Potw Solution
 
Social Media and the Job Hunt
Social Media and the Job HuntSocial Media and the Job Hunt
Social Media and the Job Hunt
 
From Geographic Information to GIS
From Geographic Information to GISFrom Geographic Information to GIS
From Geographic Information to GIS
 
Apport des technologies spatiales pour la détection de comportements anormaux...
Apport des technologies spatiales pour la détection de comportements anormaux...Apport des technologies spatiales pour la détection de comportements anormaux...
Apport des technologies spatiales pour la détection de comportements anormaux...
 
How Well Is Your Website Performing
How Well Is Your Website PerformingHow Well Is Your Website Performing
How Well Is Your Website Performing
 
Making beautiful maps with Mapbox Studio by Charley Glynn
Making beautiful maps with Mapbox Studio by Charley GlynnMaking beautiful maps with Mapbox Studio by Charley Glynn
Making beautiful maps with Mapbox Studio by Charley Glynn
 
Introduction to WAP
Introduction to WAPIntroduction to WAP
Introduction to WAP
 
Improving volunteered geographic data quality using semantic similarity measu...
Improving volunteered geographic data quality using semantic similarity measu...Improving volunteered geographic data quality using semantic similarity measu...
Improving volunteered geographic data quality using semantic similarity measu...
 
Blackboard.ppt template
Blackboard.ppt templateBlackboard.ppt template
Blackboard.ppt template
 

More from arno974

Présentation d'OpenStreetMap lors du forum français
Présentation d'OpenStreetMap lors du forum françaisPrésentation d'OpenStreetMap lors du forum français
Présentation d'OpenStreetMap lors du forum françaisarno974
 
Du code à la carte
Du code à la carteDu code à la carte
Du code à la cartearno974
 
Cartographier le monde avec des outils libres
Cartographier le monde avec des outils libresCartographier le monde avec des outils libres
Cartographier le monde avec des outils libresarno974
 
Application de la géomatique décisionnelle à l'analyse des risques naturels
Application de la géomatique décisionnelle à l'analyse des risques naturelsApplication de la géomatique décisionnelle à l'analyse des risques naturels
Application de la géomatique décisionnelle à l'analyse des risques naturelsarno974
 
Apport de la géomatique décisionnelle à l'analyse du risque
Apport de la géomatique décisionnelle à l'analyse du risqueApport de la géomatique décisionnelle à l'analyse du risque
Apport de la géomatique décisionnelle à l'analyse du risquearno974
 
Potentialités et limites d'OSM pour les administrations territoriales
Potentialités et limites  d'OSM pour les  administrations territorialesPotentialités et limites  d'OSM pour les  administrations territoriales
Potentialités et limites d'OSM pour les administrations territorialesarno974
 

More from arno974 (6)

Présentation d'OpenStreetMap lors du forum français
Présentation d'OpenStreetMap lors du forum françaisPrésentation d'OpenStreetMap lors du forum français
Présentation d'OpenStreetMap lors du forum français
 
Du code à la carte
Du code à la carteDu code à la carte
Du code à la carte
 
Cartographier le monde avec des outils libres
Cartographier le monde avec des outils libresCartographier le monde avec des outils libres
Cartographier le monde avec des outils libres
 
Application de la géomatique décisionnelle à l'analyse des risques naturels
Application de la géomatique décisionnelle à l'analyse des risques naturelsApplication de la géomatique décisionnelle à l'analyse des risques naturels
Application de la géomatique décisionnelle à l'analyse des risques naturels
 
Apport de la géomatique décisionnelle à l'analyse du risque
Apport de la géomatique décisionnelle à l'analyse du risqueApport de la géomatique décisionnelle à l'analyse du risque
Apport de la géomatique décisionnelle à l'analyse du risque
 
Potentialités et limites d'OSM pour les administrations territoriales
Potentialités et limites  d'OSM pour les  administrations territorialesPotentialités et limites  d'OSM pour les  administrations territoriales
Potentialités et limites d'OSM pour les administrations territoriales
 

Recently uploaded

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 WoodJuan lago vázquez
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
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
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
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 FMESafe Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
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 businesspanagenda
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
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 WorkerThousandEyes
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 

Recently uploaded (20)

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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
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
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
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
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

Making Web Maps Beautiful & Different with TileMill

  • 1.
  • 2. Outline What is TileMill ? TileMill components TileMill interface Working with data Importing data Styling data Adding tooltips & legend Exporting your data Export as a file Creating a web application Tips & Bonus What is TileMill > Working with data > Exporting your data > Tips & Bonus 2/23
  • 3. TileMill Design environment for making maps Windows / Linux / Mac BSD Licensed Based on among others What is TileMill > Working with data > Exporting your data > Tips & Bonus 3/23
  • 4. Interface TileMill Interface What is TileMill > Working with data > Exporting your data > Tips & Bonus 4/23
  • 5. Interface TileMill Interface Components 1 2 5 4 3 1 TileMill toolbar 2 Map toolbar 3 Map preview 4 Stylesheet editor 5 Project Toolbar 6 6 Editing Toolbar What is TileMill > Working with data > Exporting your data > Tips & Bonus 5/23
  • 6. Interface TileMill Layer Components 1 Add a new layer 2 Geometry Type 1 3 Layer ID 4 Attributes 5 Zoom to layer extent 2 3 4 5 6 7 8 6 Toggle visibility 5 Edit layer settings 6 Delete Layer What is TileMill > Working with data > Exporting your data > Tips & Bonus 6/23
  • 7. Import data TileMill Add layer Available formats : ● CSV ● ESRI Shapefle ● GeoJson ● KML ● GeoTIFF ● SQLite ● PostGIS 1 2 What is TileMill > Working with data > Exporting your data > Tips & Bonus 7/23
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. Find the good Colours Where to find your colours ? http://colorschemedesigner.com/ http://colorbrewer2.org/ Doc: http://mapbox.com/tilemill/docs/guides/tips-for-color/ What is TileMill > Working with data > Exporting your data > Tips & Bonus 12/23
  • 13.
  • 14.
  • 15. Add a legend Adding legend (A real one !) Using HTML and CSS to create a beautiful legend HTML CSS <style type='text/css'> <div class='my-legend'> .wax-legend .legend-scale ul li { <div class='legend-title'>Population of the world</div> display: block; <div class='legend-scale'> float: left; <ul class='legend-labels'> width: 50px; <li><span style='background:rgb(255, 255, 178);'></span>Pop >= 0</li> margin-bottom: 6px; <li><span style='background:rgb(254, 204, 92);'></span> >= 30m</li> text-align: center; <li><span style='background:rgb(253, 141, 60);'></span>>= 300m</li> font-size: 80%; <li><span style='background:rgb(240, 59, 32);'></span>>= 500m</li> list-style: none; <li><span style='background:rgb(189, 0, 38);'></span>>= 1M</li> } </ul> .wax-legend ul.legend-labels li span { </div> display: block; <div class='legend-source'>Source: <a href="#link to source"> float: left; Name of source</a> height: 15px; </div> width: 50px; </div> } </style> What is TileMill > Working with data > Exporting your data > Tips & Bonus 15/23
  • 16. Export your project Formats Available formats : ● Web Applciatio (Upload) ● PNG ● PDF ● SVG ● MBTiles ● Mapnik XML “MBTiles is a file format for storing map tiles in a single file. It is based on a SQLite database.” What is TileMill > Working with data > Exporting your data > Tips & Bonus 16/23
  • 17.
  • 18. Publish your project MapBox Publish What is TileMill > Working with data > Exporting your data > Tips & Bonus 18/23
  • 19. Publish your project MapBox JS <!DOCTYPE html> <html> <head> <script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script> <link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' /> <style> body { margin:0; padding:0; } #map { position:absolute; top:0; bottom:0; width:100%; } </style> </head> <body> http://mapbox.com/developers/ <div id='map'></div> <script> mapbox.auto('map', 'geotribu.earthquake'); </script> </body> </html> 19/23
  • 20. Be creative Composite operation http://mapbox.com/blog/tilemill-compositing-operations-preview/ What is TileMill > Working with data > Exporting your data > Tips & Bonus 20/23
  • 21. Be creative Composite operation http://mapbox.com/tilemill/docs/guides/comp-op/ http://mapbox.com/blog/tilemill-compositing-operations-preview/ What is TileMill > Working with data > Exporting your data > Tips & Bonus 21/23
  • 22. Tips Tips Define and using variables Comment code @green-variable : #2B4D2D; //this line will not be analyzed Map { /* background-color : @green-variable; This bloc will not be analyzed } */ #world { polygon-gill : @green-variable; Useful to test or to comment your code ! } #grass { polygon-gill : lighten(@green-variable,10%); } More info: http://lesscss.org/ What is TileMill > Working with data > Exporting your data > Tips & Bonus 22/23
  • 23. Arnaud Vandecasteele Memorial University of Newfoundland Marine Geomatics Research Lab http://www.marinegis.com/ @Geotribu 23/23