higlass-labelled-point-track

0.1.5 • Public • Published

GeoJSON Track for HiGlass

Display your favorite GeoJSON annotation right in HiGlass.

HiGlass Build Status

HiGlass showing ski areas with Mapbox

Note: This is the source code for the GeoJSON track only! You might want to check out the following repositories as well:

Installation

npm install higlass-geojson

Usage

To try this track out, head over to https://github.com/pkerpedjiev/million-primes and start a server using the provided notebook.

  1. Make sure you load this track prior to hglib.js. For example:
<script src="higlass-labelled-points-track.js"></script>
<script src="hglib.js"></script>
<script>
  ...
</script>
  1. Now, configure the track in your view config and be happy!
{
  ...
  {
    server: 'http://localhost:8001/api/v1',
    tilesetUid: 'my-outrageously-fancy-geojson-db',
    uid: 'my-outrageously-fancy-geojson-db',
    type: 'labelled-points-track',
    options: {
    },
  },
  ...
}

Take a look at src/index.html for an example.

Development

Installation

$ git clone https://github.com/pkerpedjiev/labelled-points-track && higlass-labelled-points-track
$ npm install

Commands

Developmental server: npm start Production build: npm run build

Readme

Keywords

Package Sidebar

Install

npm i higlass-labelled-point-track

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

1.93 MB

Total Files

8

Last publish

Collaborators

  • pkerpedjiev