mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Migrate to import * as React from 'react' (#1038)
This commit is contained in:
parent
30830b727b
commit
1c42df0ba2
@ -10,7 +10,7 @@ all extend the `BaseControl` React component. You may also create your own map c
|
||||
The following component renders a label "(longitude, latitude)" at the given coordinate:
|
||||
|
||||
```js
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import {BaseControl} from 'react-map-gl';
|
||||
|
||||
class CustomMarker extends BaseControl {
|
||||
|
||||
@ -5,7 +5,7 @@ resuable overlays that others can include into their project. Overlays can acces
|
||||
the current viewport through the React [context](https://facebook.github.io/react/docs/context.html):
|
||||
|
||||
```js
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {BaseControl} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -5,7 +5,8 @@
|
||||
This is a React equivalent of Mapbox's [GeolocateControl](https://www.mapbox.com/mapbox-gl-js/api/#geolocatecontrol).
|
||||
|
||||
```js
|
||||
import React, { Component } from "react";
|
||||
import * as React from 'react';
|
||||
import { Component } from "react";
|
||||
import ReactMapGL, {GeolocateControl} from "react-map-gl";
|
||||
|
||||
class Map extends Component {
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
This component allows apps to create a [map layer](https://docs.mapbox.com/mapbox-gl-js/style-spec/#layers) using React.
|
||||
|
||||
```js
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import ReactMapGL, {Layer} from 'react-map-gl';
|
||||
|
||||
const parkLayer = {
|
||||
|
||||
@ -26,7 +26,8 @@ class Map extends Component {
|
||||
Performance notes: if a large number of markers are needed, it's generally favorable to cache the `<Marker>` nodes, so that we don't rerender them when the viewport changes.
|
||||
|
||||
```js
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import ReactMapGL, {Marker} from 'react-map-gl';
|
||||
|
||||
const CITIES = [...];
|
||||
|
||||
@ -6,7 +6,8 @@ This is a React equivalent of Mapbox's [NavigationControl](https://www.mapbox.co
|
||||
which provides zoom buttons and a compass button.
|
||||
|
||||
```js
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import ReactMapGL, {NavigationControl} from 'react-map-gl';
|
||||
|
||||
class Map extends Component {
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
This component allows apps to create a [map source](https://docs.mapbox.com/mapbox-gl-js/style-spec/#sources) using React. It may contain [Layer](/docs/api-reference/layer.md) components as children.
|
||||
|
||||
```js
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import ReactMapGL, {Source, Layer} from 'react-map-gl';
|
||||
|
||||
const geojson = {
|
||||
|
||||
@ -12,7 +12,8 @@ npm install --save react-map-gl
|
||||
## Example
|
||||
|
||||
```js
|
||||
import React, { useState } from 'react';
|
||||
import * as React from 'react';
|
||||
import { useState } from 'react';
|
||||
import ReactMapGL from 'react-map-gl';
|
||||
|
||||
function Map() {
|
||||
|
||||
@ -19,8 +19,9 @@
|
||||
// THE SOFTWARE.
|
||||
|
||||
/* global document, window */
|
||||
import ReactDOM from 'react-dom';
|
||||
import React, {Component} from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import MapGL from 'react-map-gl';
|
||||
import Immutable from 'immutable';
|
||||
|
||||
|
||||
@ -17,7 +17,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {extent} from 'd3-array';
|
||||
import {scaleLinear} from 'd3-scale';
|
||||
|
||||
@ -17,7 +17,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import Immutable from 'immutable';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Source, Layer} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Popup, NavigationControl, FullscreenControl, ScaleControl} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class CityInfo extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import {Marker} from 'react-map-gl';
|
||||
|
||||
const ICON = `M20.2,15.7L20.2,15.7c1.1-1.6,1.8-3.6,1.8-5.7c0-5.6-4.5-10-10-10S2,4.5,2,10c0,2,0.6,3.9,1.6,5.4c0,0.1,0.1,0.2,0.2,0.3
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
/* global window */
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
const camelPattern = /(^|[A-Z])[a-z]*/g;
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
/* global window */
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
import ControlPanel from './control-panel';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
// Layer id patterns by category
|
||||
const layerSelector = {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import DeckGL, {ArcLayer} from 'deck.gl';
|
||||
import MapGL from 'react-map-gl';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Marker, NavigationControl} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
const eventNames = ['onDragStart', 'onDrag', 'onDragEnd'];
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
const ICON = `M20.2,15.7L20.2,15.7c1.1-1.6,1.8-3.6,1.8-5.7c0-5.6-4.5-10-10-10S2,4.5,2,10c0,2,0.6,3.9,1.6,5.4c0,0.1,0.1,0.2,0.2,0.3
|
||||
c0,0,0.1,0.1,0.1,0.2c0.2,0.3,0.4,0.6,0.7,0.9c2.6,3.1,7.4,7.6,7.4,7.6s4.8-4.5,7.4-7.5c0.2-0.3,0.5-0.6,0.7-0.9
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
import {Editor, EditorModes} from 'react-map-gl-draw';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import area from '@turf/area';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Popup, Source, Layer} from 'react-map-gl';
|
||||
import ControlPanel from './control-panel';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
/* global window */
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Source, Layer} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Source, Layer} from 'react-map-gl';
|
||||
import ControlPanel from './control-panel';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
/* global document */
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
/* global document */
|
||||
import React, {useState} from 'react';
|
||||
import * as React from 'react';
|
||||
import {useState} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Source, Layer} from 'react-map-gl';
|
||||
import ControlPanel from './control-panel';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {Marker} from 'react-map-gl';
|
||||
import ControlPanel from './control-panel';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
const camelPattern = /(^|[A-Z])[a-z]*/g;
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
import ControlPanel from './control-panel';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import {fromJS} from 'immutable';
|
||||
import MAP_STYLE from '../../map-style-basic-v8.json';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {GeolocateControl} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import BartMap from './bart-map';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import MapGL, {Marker} from '../../../src';
|
||||
|
||||
import bartStations from '../../.data/bart-station.json';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {FlyToInterpolator} from 'react-map-gl';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
import CITIES from '../../.data/cities.json';
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import * as React from 'react';
|
||||
import {Component} from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import MapGL, {LinearInterpolator, WebMercatorViewport} from 'react-map-gl';
|
||||
import bbox from '@turf/bbox';
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
|
||||
export default class ControlPanel extends PureComponent {
|
||||
render() {
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {PureComponent, createRef} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent, createRef} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MapContext from './map-context';
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
import {document} from '../utils/globals';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from './base-control';
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import mapboxgl from '../utils/mapboxgl';
|
||||
|
||||
import type {BaseControlProps} from './base-control';
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
// @flow
|
||||
|
||||
/* global window */
|
||||
import React, {createRef} from 'react';
|
||||
import * as React from 'react';
|
||||
import {createRef} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import WebMercatorViewport from 'viewport-mercator-project';
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
// @flow
|
||||
import React, {PureComponent, createRef} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent, createRef} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import StaticMap from './static-map';
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {PureComponent} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MapContext from './map-context';
|
||||
import assert from '../utils/assert';
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import DraggableControl from './draggable-control';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from './base-control';
|
||||
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {createRef} from 'react';
|
||||
import * as React from 'react';
|
||||
import {createRef} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from './base-control';
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from './base-control';
|
||||
import mapboxgl from '../utils/mapboxgl';
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {PureComponent, cloneElement} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent, cloneElement} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MapContext from './map-context';
|
||||
import assert from '../utils/assert';
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
import React, {PureComponent, createRef} from 'react';
|
||||
import * as React from 'react';
|
||||
import {PureComponent, createRef} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import {normalizeStyle} from '../utils/style-utils';
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from '../components/base-control';
|
||||
import {window} from '../utils/globals';
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from '../components/base-control';
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import BaseControl from '../components/base-control';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/* global window, document */
|
||||
import test from 'tape-promise/tape';
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import MapGL from 'react-map-gl';
|
||||
import {render, unmountComponentAtNode} from 'react-dom';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/* global __MAPBOX_TOKEN__ */
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import {StaticMap, NavigationControl, GeolocateControl, Popup, Source, Layer} from 'react-map-gl';
|
||||
|
||||
const EMPTY_MAP_STYLE = {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/* global setTimeout, clearTimeout */
|
||||
import MapGL, {InteractiveMap} from 'react-map-gl';
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import ReactTestUtils from 'react-test-renderer/shallow';
|
||||
import ReactTestRenderer from 'react-test-renderer';
|
||||
import sinon from 'sinon';
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {Marker} from 'react-map-gl';
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import ReactTestRenderer from 'react-test-renderer';
|
||||
import WebMercatorViewport from 'viewport-mercator-project';
|
||||
import sinon from 'sinon';
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import {Home} from 'gatsby-theme-ocular/components';
|
||||
import styled from 'styled-components';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user