import React from 'react'; import { Map } from 'reaviz'; import { MapMarker } from 'reaviz'; import { feature } from 'topojson-client'; import geojson from 'world-atlas/countries-110m.json'; // Using 'countries' is less performant than 'land' but we want to be able // to filter and disect on specific shapes const worldData = feature(geojson as any, geojson.objects.countries as any); export default { tags: ['snapshot'], title: 'Charts/Map', component: Map as any, subcomponents: { MapMarker } }; export const Simple = () => ( ); export const NaturalEarthProjection = () => ( ); export const Autosize = () => (
); export const Markers = () => ( , , ]} /> );