0.8.0 • Published 6 years ago
@gameworkers/chapter-map-component v0.8.0
GWU Chapter Map Component
See examples here!
Install by doing:
npm install --save @gameworkers/chapter-map-componentimport 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
};