Skip to content

Commit 4f75def

Browse files
Merge pull request #150 from Lucas-Levandoski/master
exporting azure maps subscription enum
2 parents 401cd23 + d8601d4 commit 4f75def

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ The library implements a lot of ready to use components like `AzureMapFeature, A
6868

6969
```javascript
7070
import React from 'react'
71-
import {AzureMap, AzureMapsProvider, IAzureMapOptions} from 'react-azure-maps'
72-
import {AuthenticationType} from 'azure-maps-control'
71+
import {AzureMap, AzureMapsProvider, IAzureMapOptions, AuthenticationType} from 'react-azure-maps'
7372

7473
const option: IAzureMapOptions = {
7574
authOptions: {

src/types.ts

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -161,28 +161,28 @@ export type IAzureMapEvent = {
161161
export type IAzureDataSourceStatefulProviderProps = {
162162
id: string
163163
children?:
164-
| Array<IAzureDataSourceChildren | IAzureDataSourceChildren[] | null>
165-
| IAzureDataSourceChildren
166-
| null
164+
| Array<IAzureDataSourceChildren | IAzureDataSourceChildren[] | null>
165+
| IAzureDataSourceChildren
166+
| null
167167
options?: DataSourceOptions
168168
events?: IAzureMapDataSourceEvent | any
169169
dataFromUrl?: string
170170
collection?:
171-
| atlas.data.FeatureCollection
172-
| atlas.data.Feature<atlas.data.Geometry, any>
173-
| atlas.data.Geometry
174-
| atlas.data.GeometryCollection
175-
| Shape
176-
| Array<atlas.data.Feature<atlas.data.Geometry, any> | atlas.data.Geometry | Shape>
171+
| atlas.data.FeatureCollection
172+
| atlas.data.Feature<atlas.data.Geometry, any>
173+
| atlas.data.Geometry
174+
| atlas.data.GeometryCollection
175+
| Shape
176+
| Array<atlas.data.Feature<atlas.data.Geometry, any> | atlas.data.Geometry | Shape>
177177
index?: number
178178
}
179179

180180
export type IAzureVectorTileSourceStatefulProviderProps = {
181181
id: string
182182
children?:
183-
| Array<IAzureVectorTileSourceChildren | IAzureVectorTileSourceChildren[] | null>
184-
| IAzureVectorTileSourceChildren
185-
| null
183+
| Array<IAzureVectorTileSourceChildren | IAzureVectorTileSourceChildren[] | null>
184+
| IAzureVectorTileSourceChildren
185+
| null
186186
options?: VectorTileSourceOptions
187187
events?: IAzureMapVectorTileSourceEvent
188188
// NOTE: not sure yet why this is needed, haven't seen this used in AzureMapsDataSource, though IAzureGeoJSONDataSourceStatefulProviderProps has it
@@ -202,16 +202,16 @@ export type IAzureMapLifecycleEvent = {
202202
export type IAzureLayerStatefulProviderProps = {
203203
id?: string
204204
options?:
205-
| (SymbolLayerOptions &
206-
HeatMapLayerOptions &
207-
ImageLayerOptions &
208-
LineLayerOptions &
209-
PolygonExtrusionLayerOptions &
210-
PolygonLayerOptions &
211-
TileLayerOptions &
212-
BubbleLayerOptions &
213-
LayerOptions)
214-
| Options
205+
| (SymbolLayerOptions &
206+
HeatMapLayerOptions &
207+
ImageLayerOptions &
208+
LineLayerOptions &
209+
PolygonExtrusionLayerOptions &
210+
PolygonLayerOptions &
211+
TileLayerOptions &
212+
BubbleLayerOptions &
213+
LayerOptions)
214+
| Options
215215
type: IAzureMapLayerType
216216
events?: IAzureMapLayerEvent | any
217217
onCreateCustomLayer?: (dataSourceRef: DataSourceType, mapRef: MapType | null) => atlas.layer.Layer
@@ -316,10 +316,10 @@ export type IAzureMapFeature = {
316316
properties?: Options
317317
// Shape functions:
318318
setCoords?:
319-
| atlas.data.Position
320-
| atlas.data.Position[]
321-
| atlas.data.Position[][]
322-
| atlas.data.Position[][][]
319+
| atlas.data.Position
320+
| atlas.data.Position[]
321+
| atlas.data.Position[][]
322+
| atlas.data.Position[][][]
323323
setProperties?: Options
324324
}
325325

@@ -340,3 +340,4 @@ export type AzureDataLineString = atlas.data.LineString
340340
export type AzureDataPosition = atlas.data.Position
341341
export type ControlOptions = atlas.ControlOptions
342342
export type AzureSetCameraOptions = ((CameraOptions | CameraBoundsOptions) & AnimationOptions) | any
343+
export { AuthenticationType } from 'azure-maps-control'

0 commit comments

Comments
 (0)