SlideShare a Scribd company logo
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

UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKUXDXConf
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
Buy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxBuy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxEasyPrinterHelp
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfFIDO Alliance
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Buy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxBuy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptx
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 

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