SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Andere mochten auch

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
 

Andere mochten auch (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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 

Kürzlich hochgeladen (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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
 
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...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

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