SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
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

Contenu connexe

En vedette

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
 

En vedette (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
 

Plus de 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
 

Plus de 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
 

Dernier

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
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
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
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
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Dernier (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
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
 
+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...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
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
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

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