background preloader

Let’s Make a Map

Let’s Make a Map
In this tutorial, I’ll cover how to make a modest map from scratch using D3 and TopoJSON. I’ll show you a few places where you can find free geographic data online, and how to convert it into a format that is both efficient and convenient for display. I won’t cover thematic mapping, but the map we’ll make includes labels for populated places and you can extend this technique to geographic visualizations such as graduated symbol maps and choropleths. Without further ado, here’s the map: Shown are the four constituent countries of the United Kingdom: Scotland, Northern Ireland, Wales and England. #Finding Data The first task for any map is finding geometry. Unfortunately, government data can sometimes be hard to find or use. For a crowdsourced alternative, GeoCommons is a platform for sharing geographic datasets. Hands-down, the most convenient source of free geographic data is Natural Earth. The first includes country polygons, while the second has names and locations of populated places.

Mapping with D3 | Visible Data Trying out D3's geographic features. Hover over a county: There's nothing special about this map. The Good Creating a simple map in D3 is remarkably easy. var counties = map.append('g') .attr('class', 'counties') .selectAll('path') .data(countylines.features) .enter().append('path') .attr('d', d3.geo.path()); Where countylines is a GeoJSON object and map is an SVG selection. The Bad GeoJSON files can be big, and loading them can take ... awhile. One possible solution to this is TopoJSON. The Ugly Mapping is still hard.

Introduction Step-by-step instructions for making maps This crash course walks through how to design custom web maps in TileMill. It will help you quickly get familiar with the basics of map design with TileMill, from importing and styling your data to designing and sharing your map. This guide focuses on the core functions of TileMill and links to documentation throughout for more advanced and specific techniques in map design. Start here for an overview of TileMill. If you have any questions along the way, start a discussion with our support team. What we’ll cover Importing data We walk through how to download data and get it into TileMill. Styling data Here we show the basics of using CartoCSS to style your data and make a truly custom map. Adding tooltips and legends Making your map interactive and adding a legend is critical to communicating your data. Exporting your map Maps made in TileMill can be shared quickly and easily in a number of formats.

How to Make Choropleth Maps in D3 Even if you think you don’t know what a choropleth map is, chances are you’ve seen one. And come November 2012, you’ll see plenty: one iconic example of a choropleth map is a map of the United States, laid out in red and blue, showing the results of a presidential election. Choropleth maps can be simple, like in the example above, where the color of the state indicates whether the state goes in one direction (Democrat) or the other (Republican). The states can also be colored on a scale to indicate data, with a color like blue representing a low number and red representing a high number, leaving a number in between to be purple. These simple visualizations make large amounts of data easy to understand at a glance, allowing insights that would take much longer if you’re looking at a table of numbers. There have been tutorials for Python and Excel, but none that we’ve seen yet for D3 — and D3 is one of the easiest ways to make choropleth maps for the web. Let’s start with our base map.

Apontamentos para a Criação de um Mapa em Processing | ZL Vórtice clique para copiar e colar o código que gera o mapa acima Uma das frentes de pesquisa do ZL Camp é investigar as possibilidade de uso do Processing para gerar visualizações de dados cartográficos. Este post vai documentar os avanços realizados e servir como um espaço para compartilhamento de informações e versões dos arquivos criados. O material será organizado com duas finalidades: permitir que os pesquisadores do projeto que não tem tanta familiaridade com o Processing possam aprender mais sobre o programa, e aprimorar seus conhecimentos para otimizar suas participação no processo de desenvolvimento coletivo; gerar um repositório de soluções, desafios futuros e recursos disponíveis para os pesquisadores do projeto ir progressivamente melhorando um mapa criado coletivamente. No primeiro ZL Camp, uma das fontes iniciais foi o capítulo 3 do livro Visualizing Data, de Ben Fry (clique para download do livro em PDF). clique para copiar e colar o código em Processing desta imagem Curtir isso:

Creating Animated Bubble Charts in D3 - Jim Vallandingham Update: I moved the code to its own github repo - to make it easier to consume and maintain. Update #2 I’ve rewritten this tutorial in straight JavaScript. So if you aren’t that in to CoffeeScript, check the new one out! Recently, the New York Times featured a bubble chart of the proposed budget for 2013 by Shan Carter . As FlowingData commenters point out , the use of bubbles may or may not be the best way to display this dataset. In this post, we attempt to tease out some of the details of how this graphic works. #Simple Animated Bubble Chart In order to better understand the budget visualization, I’ve created a similar bubble chart that displays information about what education-based donations the Gates Foundation has made. You can see the full visualization here And the visualization code is on github **Warning Coffeescript** The example is written in [CoffeeScript]( as I find it much easier to read and write than javascript. #D3’s Force Layout #nodes #gravity #alpha

Map design: a list of helpful online resources Whether they’ve been making maps for 20 years or two weeks, just like any designer, cartographers need inspiration when starting their latest project. Inspiration can come from many places and take many forms. Here at Ordnance Survey we use a range of resources and we want to share some of them with you. In this post we list several online resources that can help with your latest map design; from choosing the right colour palette to selecting great fonts. Some of these resources are specific to map-making and some are more general. Although by no means a definitive list, these are some of the tools and resources that we refer to and use regularly and we have sorted them into four categories: colours, fonts, symbols and map inspiration: Colours The use of colour is very often fundamental to the success of a map. ColorBrewer 2.0 is a great tool for selecting colour schemes that are specific to maps, especially helpful when mapping various classes of data. Fonts 1001 Free Fonts Dafont.com

Building a Bubble Cloud - Jim Vallandingham For the 2012 Republican and Democratic national conventions, Mike Bostock , Shan Carter , and Matthew Ericson have created a series of visualizations highlighting the words being used in the speeches of both gatherings. These word-cloud-like word bubble clouds (what I’ll call bubble clouds, unless you can think of a better name) serve as a great interface for looking at the differences in the two conventions and for browsing through quotes from the talks. Check them out here: While there is a lot that could be discussed about all the little things that contribute to the quality and polish of these visualizations, in this tutorial we will look at some of the implementation details that make them tick. Bubble Cloud Demo I’ve created a basic bubble cloud visualization that tries to replicate some of the functionality of the NYT version. Try clicking on the bubbles, then try dragging them around. The source code is available for download and use in your own projects. Ready to get started?

Criar e mapear trilhas, caminhos e estradas com sobreposições do GPS do seu celular - Gmapas Mapear suas trilhas e/ou caminhos favoritos no Map Maker ás vezes pode ser complicado por inúmeros fatores, o mais comum é a trilha não ter uma linha clara na imagem para ser mapeada, principalmente se a trilha for muito estreita ou em mata fechada. Se voc vai fazer uma trilha, você pode salvá-la em seu aparelho celular e depois envia-la para o Map Maker para disponibilizar para todos os usuários do Google Maps. O que você vai precisar - Conta Google A conta Google é necessária para você exportar sua trilha salva no seu aparelho celular para o Google Maps ou exportá-la para o Google Docs/Drive. - Celular com GPS e com o sistema operacional Android (do Google) O GPS é necessário para efetuar uma localização precisa das coordenadas de sua trilha. - Aplicativo para celular (apps) Minhas Trilhas do Google Maps Este aplicativo vai gravar suas trilhas com o GPS do seu celular. 1 - Quando começar sua trilha acione o aplicativo "Minhas Trilhas" no seu telefone celular. O que você deve saber Dúvidas

On the tenth day of Xmas, get dirty with data using d3.js | 12 Devs of Xmas I’d like to start off by asking what seems like quite a simple question: What is the difference between data and information? And taking it a step further, where does knowledge fit into this definition? Not as easy to answer as you might expect, is it! Before we start getting our hands dirty creating some awesome data visualisations, it’s going to be useful to learn the definitions of – and difference between – these three words. Data is a set of unprocessed facts (the word comes from the latin datum which means “that which is given”). These data are generally meaningless until they have been processed. Information is what you get after you’ve processed the data. Knowledge is perhaps the most difficult to define, but the definition which I think makes most sense in this instance is how we use our past experiences to decide what to do based on information. So what are we going to build, and what with? There are a number of tools out there to help you to create charts and visualisations.

Photo mapping Available languages — For tracing aerial photos, see Aerial imagery. Photo mapping, a popular mapping technique, can be a great timesaver - it can be far quicker taking photos of street signs or points of interest than either to write it down, typing on a smartphone, or using waypointing on a GPS gadget. What's more, smartphones and cameras can often add GPS coordinates, making it easy to match up the photos to the exact position they were taken. Simple photo mapping Use your camera to help you remember stuff. You don't need to use GPS and other advanced tricks described on this page. Orientation Even if you have a GPS track, it can be difficult to determine the way you were facing when taking a photograph. Geo-located photos Smartphones and some cameras come with in-built GPS (and some GPS units come with in-built camera) so these devices will typically write geolocation data to the image file's metadata (EXIF) each time the shutter is snapped. What if you're using a camera without GPS?

Simple D3JS Dashboard index.html# Mapping Weekend Howto What is a mapping party? A mapping party is where a group of openstreetmappers and novices descend on an area to map it exhaustively, usually over a weekend. It's a very social event where people can meet up and talk (usually at a pub) in between mapping sessions. There have been many mapping parties so far, all over the world!... Getting Started For a successful mapping party you need three key ingredients: a place, some people and a date. When Once you have a rough venue ('London' or 'Berlin') and a couple of people, then put up a wiki page with all the details and confirming the date. Planning Here's a checklist of things to do in advance Time Announce your event at least two months ahead of time. Place Choose a place that's reasonably near major transport like airports, train stations and motorways. Other Start the wiki page. At the event GPS units Unless you are mapping a city covered by Aerial Imagery, you will need to do surveying using GPS Units. Publicity Internet Promotion Press Release

Histogram Histogram This chart shows a histogram of a Bates distribution. The data is randomly generated. The values are then binned at regular intervals using D3’s histogram layout. The x-axis uses a linear scale, such that the tick values appear between bars; this provides better indication that each bar represents the count of values between its surrounding tick values. See also this histogram of a log-normal distribution of time durations. index.html#

Related: