d3-geomap

WebJar for d3-geomap

Лицензия

Лицензия

MIT
Категории

Категории

Geo Прикладные библиотеки Geospatial
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

d3-geomap
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

d3-geomap
WebJar for d3-geomap
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/yaph/d3-geomap

Скачать d3-geomap

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/d3-geomap/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>d3-geomap</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/d3-geomap/
implementation 'org.webjars.npm:d3-geomap:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/d3-geomap/
implementation ("org.webjars.npm:d3-geomap:2.0.0")
'org.webjars.npm:d3-geomap:jar:2.0.0'
<dependency org="org.webjars.npm" name="d3-geomap" rev="2.0.0">
  <artifact name="d3-geomap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='d3-geomap', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "d3-geomap" % "2.0.0"
[org.webjars.npm/d3-geomap "2.0.0"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.webjars.npm : d3 jar [4.9.1,5)
org.webjars.npm : gulp jar [3.9.1,4)
org.webjars.npm : topojson jar [3.0.0,4)
org.webjars.npm : d3-geo-projection jar [2.1.2,3)
org.webjars.npm : gulp-sass jar [4.0.2,5)

Модули Проекта

Данный проект не имеет модулей.

d3-geomap

npm package version npm package license

d3-geomap is designed to be a reusable geographic map for D3. In its current stage it consists of a class to create plain maps d3.geomap() and one for choropleth maps d3.choropleth().

Refer to the documentation on how to use d3-geomap and to download a bundle that contains minified versions of d3-geomap and its dependencies as well as TopoJSON files for creating world and individual country maps.

Install

$ npm install d3-geomap

Usage

ES6:

import { select } from 'd3-selection';
import { geomap } from 'd3-geomap';

const worldMap = geomap();
worldMap.geofile('./node_modules/d3-geomap/src/world/countries.json');

worldMap.draw(select('#map'));

Otherwise, see examples in the /examples directory.

Develop

Clone the repo & install dependencies:

$ git clone https://github.com/yaph/d3-geomap.git
$ cd d3-geomap
$ npm install

Start the development server:

$ npm run serve

A browser should open pointed to http://localhost:8000/examples/. Choose to view one of the example maps.

Map Showcase

World Cup 2014 Players' Birth Countries

The map above, showing birth countries of Football World Cup 2014 players, was created with d3-geomap. You can find more example maps here.

Версии библиотеки

Версия
2.0.0