"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild
This is an old revision of the document!
Barème : ~ équipondéré.
Utiliser le code ci-dessous comme point de départ et qui affiche une carte centrée sur la Suisse avec une couche de base de type Bing.
<html> <head> <title>ol3 - ExaRattrapage - Swiss votations UEMARS2001</title> <script type="text/javascript" src="js/config.js"></script> <script type="text/javascript"> var map; $(document).ready(function () { map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.BingMaps({ key: 'AqE05oJsq-bWa50FPOW2S0eQm9Oqqygc1VTi_WPhUIoKR_-jgA559CRbfndgWAIz', imagerySet: 'CanvasGray' }) }) ] }); map.getView().setCenter(ol.proj.transform([8.2, 46.8], "EPSG:4326", "EPSG:3857")); map.getView().setZoom(9); /* A vous de jouer ... * - ajouter une couche utilisant le flux votations.geojson fourni * - ajuster son style selon instructions et illustration */ }); </script> <style type="text/css"> #map { width: 100%; height: 100%; } </style> </head> <body> <div id="map"></div> </body> </html>
On vous fournit un flux GeoJSON des districts de Suisse avec quelques attributs dont le champ 'uemars2001' qui contient les résultats d'une votation concernant l'adhésion à l'UE (ce flux a été exporté depuis ce dataset stocké chez Carto.com).
Il s'agit :
Votre collègue, Candide, est parti en congés sans terminer l'habillage cartographique du projet “Vevey map”. Il vous demande de le terminer selon l'illustration ci-dessous et les informations suivantes qu'il a bien voulu vous laisser :
Quelles sont les instructions CartoCSS pour chaque couche et qui répondent à ces souhaits en produisant le résultat illustré ci-dessous ?