npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ec-atlas

v0.0.7

Published

Pre-built TopoJSON from Ecuador

Downloads

7

Readme

Ecuador Atlas TopoJSON

This repository provides a convenient redistribution of the Ecuador cartographic boundary shapefiles, 2015 edition as vector data.

To align the names of subnational jurisdictions in Ecuador, four levels have been set:

  • level1: country
  • level2: provinces
  • level3: cantons
  • level4: parishes

Usage

You can use the geojson and topojson files in your map on a webpage.

To visualize with d3:

d3
    .geoIdentity()
    .reflectY(true)
    .fitSize([width, height], features)

Or using Plot in observablehq, see an example here

Generating the files

Clone or download the repo and start a terminal. Then run npm run prepublishOnly to transform the downloaded zip files into topojson files.

If you need to make further adjustments (projection, simplification, quantization) you can change the prepublish config file and run npm run prepublishOnly again.

Note: Use the identity projection to visualize the map.

Reference

# simplification

Removes points to reduce the file size. Set to 3% by default.

# quantization

Removes information by reducing the precision of each coordinate. Set to 1e5 by default.

File Reference

# ecuador-transverse_mercator-50k.json · Download

A TopoJSON file containing 4 levels of geometry. The geometry is quantized and simplified and projected.

# ec.objects.level4

Each parish has two properties:

  • parish.id - the six-digit DPA_PARROQ code, such as "010152"
  • parish.properties.name - the district name, such as "CUMBE"

The first two digits of the parish DPA_PARROQ code is the province code.

# ec.objects.level3

Each canton has two properties:

  • canton.id - the four-digit canton code, such as "0102"
  • canton.properties.name - the province name, such as "GIRON"

# ec.objects.provinces

The provinces has two properties:

  • province.id - the string "01"
  • province.properties.name - the string "AZUAY"

Inspiration

The original idea and implementation comes from Mike Bostock’s us-atlas and world-atlas.