@mapbox/react-map-gl
Version:
A React wrapper for MapboxGL-js and overlay API.
27 lines (22 loc) • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = require("react");
var _default = (0, _react.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
});
exports["default"] = _default;
//# sourceMappingURL=map-context.js.map