@gameworkers/chapter-map-component

0.8.0 • Public • Published

GWU Chapter Map Component

See examples here!

Install by doing:

npm install --save @gameworkers/chapter-map-component
import ChapterMapComponent from '@gameworkers/chapter-map-component';

// later...

<ChapterMapComponent
  centerLat={55}
  centerLng={15}
  className="chapter_map"
  forceGrayscale={false}
  height={825}
  isGeographyIncluded={function(geography) {
    return geography.properties.REGION_UN === 'Europe';
  }}
  markerScale={0.1}
  scale={1125}
  width={720}
/>

All props are optional and have the following default values if nothing is specified:

ChapterMapComponent.defaultProps = {
  centerLat: 0,
  centerLng: 0,
  width: 980,
  height: 551,
  scale: 205,
  isGeographyIncluded: () => true,
  markerScale: 0.1,
  forceGrayscale: false
};

Readme

Keywords

Package Sidebar

Install

npm i @gameworkers/chapter-map-component

Weekly Downloads

0

Version

0.8.0

License

AGPL

Unpacked Size

3.92 MB

Total Files

29

Last publish

Collaborators

  • lefttheburneron