earth-topojson

WebJar for earth-topojson

License

License

MIT
Categories

Categories

JSON Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

earth-topojson
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

earth-topojson
WebJar for earth-topojson
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hughsk/earth-topojson

Download earth-topojson

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

earth-topojson stable

TopoJSON files of the Earth sourced from Natural Earth.

Usage

NPM

Load the TopoJSON files using the following:

var highRes = require('earth-topojson/10m.json')
var normRes = require('earth-topojson/50m.json')
var lowRes = require('earth-topojson/110m.json')
var lowRes = require('earth-topojson')

You can then use the topojson package on npm to convert those files into GeoJSON:

var world = require('earth-topojson')
var topojson = require('topojson')

var countries = topojson.feature(world, world.objects.countries)

See Also

License

MIT. See LICENSE.md for details.

Versions

Version
1.0.0