@mapbox/react-map-gl
Version:
A React wrapper for MapboxGL-js and overlay API.
17 lines (16 loc) • 407 B
JavaScript
import { createContext } from 'react';
export default createContext({
/* Map context */
// Viewport
viewport: null,
// mapboxgl.Map instance
map: null,
// DOM element that contains the map
mapContainer: null,
/* Interactive-only context */
// EventManager instance
eventManager: null,
// whether the map is being dragged
isDragging: false
});
//# sourceMappingURL=map-context.js.map