mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Add Mapbox map index file
This commit is contained in:
parent
74b01032e7
commit
a27217609c
2 changed files with 8 additions and 1 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
6
src/components/Map/MapboxMap.js
Normal file
6
src/components/Map/MapboxMap.js
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue