Add Mapbox map index file

This commit is contained in:
Kimmo Puputti 2018-08-14 15:03:47 +03:00
parent 74b01032e7
commit a27217609c
2 changed files with 8 additions and 1 deletions

View file

@ -3,7 +3,8 @@ import { bool, number, object, string } from 'prop-types';
import classNames from 'classnames';
import { propTypes } from '../../util/types';
import config from '../../config';
import { StaticMap, DynamicMap, isMapsLibLoaded } from './GoogleMap';
// import { StaticMap, DynamicMap, isMapsLibLoaded } from './GoogleMap';
import { StaticMap, DynamicMap, isMapsLibLoaded } from './MapboxMap';
import css from './Map.css';

View file

@ -0,0 +1,6 @@
export { default as DynamicMap } from './DynamicMapboxMap';
export { default as StaticMap } from './StaticMapboxMap';
export const isMapsLibLoaded = () => {
return typeof window !== 'undefined' && window.mapboxgl;
};