Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
neighborhood-outlines
Advanced tools
Takes GeoJSON data for neighborhood outlines, and formats it so that we can use them on our maps.
Takes GeoJSON data for neighborhood outlines, and formats it so that we can use them on our maps.
Each main city (Berlin, Leipzig, Potdam) has a folder containing folders for each of the main districts (Bezirke). Inside each of these folders is a single JSON file for each of the neighborhoods (Ortsteile). You can choose to pull in an entire city with all the neighborhoods, or import each one as needed. You can also pull in a single district at a time.
import { moabit, wedding, schoeneberg } from 'neighborhood-outlines/berlin';
import { bezirkLichtenberg } from 'neighborhoods-outlines/berlin';
import { berlin, leipzig } from 'neighborhood-outlines';
import { berlin } from 'neighborhood-outlines';
inside of GoogleMapReact onGoogleApiLoaded handler:
const gMap = map.map_;
const shapes = berlin.reduce((results, nextNeighborhood) => {
if (Array.isArray(nextNeighborhood.coordinates[0])) {
nextNeighborhood.coordinates.forEach((coords) => {
const shape = new google.maps.Polygon({
paths: coords,
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
zIndex: 1000,
});
results.push(shape);
});
} else {
const shape = new google.maps.Polygon({
paths: nextNeighborhood.coordinates,
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
zIndex: 1000,
});
results.push(shape);
}
return results;
}, []);
shapes.forEach(shape => shape.setMap(gMap));
https://data.technologiestiftung-berlin.de/dataset/ortsteile/en
To use them, must follow these guidelines:
Für die Verwendung der Daten gelten folgende Nutzungsbestimmungen:
http://www.stadtentwicklung.berlin.de/geoinformation/download/nutzIII.pdf - Der Quellenvermerk gemäß §2 lautet "Geoportal Berlin / [Titel des Datensatzes]".
To use them, must follow these guidelines:
Für diese Datensätze gilt die "Datenlizenz Deutschland" in der aktuellen Fassung sowie die Nutzungsbedingungen des Open Data-Portals der Stadt Leipzig.
Bei Quellenangabe zitieren Sie bitte wie folgt: "Stadt Leipzig, Amt für Statistik und Wahlen, [Jahr]".
https://opendata.potsdam.de/explore/dataset/stadtteile/information/?location=10,52.47843,13.13759
FAQs
Takes GeoJSON data for neighborhood outlines, and formats it so that we can use them on our maps.
The npm package neighborhood-outlines receives a total of 0 weekly downloads. As such, neighborhood-outlines popularity was classified as not popular.
We found that neighborhood-outlines demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.