0.8.0 • Published 4 years ago

@gameworkers/chapter-map-component v0.8.0

Weekly downloads
10
License
AGPL
Repository
github
Last release
4 years ago

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
};
0.8.0

4 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago