Skip to main content
100%

Cafés in Groningen

✓ Published0🌍 Public
FFrieseWoudloper
Last edited Aug 12, 2016
Created on Aug 12, 2016

The visualization shows all cafés located within the administrative area of Groningen, using OpenStreetMap data to map their positions as clickable markers with pop-up name labels. It begins by displaying the geographic context of the city before highlighting the distribution of café locations. The code constructs a Leaflet map and queries the Overpass API for nodes tagged with `amenity=cafe` inside the Groningen boundary. The response is converted from OSM XML to GeoJSON using the `osmtogeojson` library, then rendered as a vector layer via `L.geoJson`, with the map view automatically fitting to the café bounds.

AI-generated description

Similar vizzes

Loading thumbnail…

Groninger gemeenten

This example visualizes the municipalities of the Dutch province of Groningen using D3.js. The map is generated from multiple TopoJSON files (with and without bounding boxes, and with different quantization parameters) that were created with FME Desktop 2019. Due to mixed winding orders of the polygons, the initial rendering shows a rectangle instead of the correct municipality boundaries. The visualization demonstrates the impact of winding order and TopoJSON preprocessing on geographic data rendering. By comparing the different file versions, viewers can observe how the bounding box and the right-hand rule (Orientator transformer) affect the final output. The map displays the municipalities in the northern Netherlands, with the D3 code provided in index.html. A key challenge highlighted is the need for consistent polygon winding order to ensure correct D3.js visualization.**Title:** Groninger gemeenten **Description:** This visualization demonstrates a common pitfall in geographic data processing: winding order in polygon coordinates. The map displays the municipalities in the northern Netherlands, but due to mixed winding orders in the polygon definitions, D3.js renders a solid rectangle instead of the expected municipal boundaries. The author created four TopoJSON variants using FME Desktop 2019—with and without bounding boxes, and with different quantization parameters—to isolate the winding order issue. The accompanying `index.html` file contains the D3.js code used to visualize the files and reproduce the problem. This example is particularly useful for developers working with TopoJSON and D3.js, illustrating how winding order can affect rendering and how data preprocessing choices influence the final output. Source: [gist by FrieseWoudloper](https://gist.github.com/FrieseWoudloper)

FFrieseWoudloper
66% match