|
1 | 1 | // @flow |
2 | 2 |
|
3 | | -import Immutable from 'immutable'; |
| 3 | +import type Map from 'mapbox-gl/src/ui/map'; |
| 4 | +import type Popup from 'mapbox-gl/src/ui/popup'; |
| 5 | +import type Marker from 'mapbox-gl/src/ui/marker'; |
| 6 | +import type { Map as ImmutableMap } from 'immutable'; |
| 7 | +import type { MapMouseEvent, MapTouchEvent } from 'mapbox-gl/src/ui/events'; |
| 8 | + |
4 | 9 | import type { |
5 | | - Map, |
6 | | - StyleSpecification, |
7 | | - SourceSpecification, |
8 | 10 | LayerSpecification, |
9 | | - MapMouseEvent, |
10 | | - MapTouchEvent |
11 | | -} from 'mapbox-gl'; |
| 11 | + StyleSpecification, |
| 12 | + SourceSpecification |
| 13 | +} from 'mapbox-gl/src/style-spec/types'; |
| 14 | + |
| 15 | +import type { LngLatBoundsLike } from 'mapbox-gl/src/geo/lng_lat_bounds'; |
12 | 16 |
|
13 | 17 | declare type MapboxMap = Map; |
14 | 18 |
|
15 | | -declare type MapboxLayer = LayerSpecification; |
| 19 | +declare type MapboxPopup = Popup; |
| 20 | + |
| 21 | +declare type MapboxMarker = Marker; |
| 22 | + |
| 23 | +declare type MapboxLngLatBoundsLike = LngLatBoundsLike; |
| 24 | + |
| 25 | +declare type MapboxLayerSpecification = LayerSpecification; |
| 26 | + |
| 27 | +declare type MapboxStyleSpecification = StyleSpecification; |
| 28 | + |
| 29 | +declare type MapboxSourceSpecification = SourceSpecification; |
16 | 30 |
|
17 | 31 | declare type MapStyle = { |
18 | 32 | toJS: () => StyleSpecification |
19 | | -} & Immutable.Map<string, any>; |
| 33 | +} & ImmutableMap<string, any>; |
20 | 34 |
|
21 | 35 | declare type MapSource = { |
22 | 36 | toJS: () => SourceSpecification |
23 | | -} & Immutable.Map<string, any>; |
| 37 | +} & ImmutableMap<string, any>; |
24 | 38 |
|
25 | 39 | declare type MapLayer = { |
26 | 40 | toJS: () => LayerSpecification |
27 | | -} & Immutable.Map<string, any>; |
| 41 | +} & ImmutableMap<string, any>; |
28 | 42 |
|
29 | 43 | declare type Viewport = { |
30 | 44 | latitude: number, |
|
0 commit comments