Skip to content

Commit

Permalink
Merge pull request #150 from Lucas-Levandoski/master
Browse files Browse the repository at this point in the history
exporting azure maps subscription enum
  • Loading branch information
yulinscottkang authored Apr 11, 2023
2 parents 401cd23 + d8601d4 commit 4f75def
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ The library implements a lot of ready to use components like `AzureMapFeature, A

```javascript
import React from 'react'
import {AzureMap, AzureMapsProvider, IAzureMapOptions} from 'react-azure-maps'
import {AuthenticationType} from 'azure-maps-control'
import {AzureMap, AzureMapsProvider, IAzureMapOptions, AuthenticationType} from 'react-azure-maps'

const option: IAzureMapOptions = {
authOptions: {
Expand Down
53 changes: 27 additions & 26 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,28 +161,28 @@ export type IAzureMapEvent = {
export type IAzureDataSourceStatefulProviderProps = {
id: string
children?:
| Array<IAzureDataSourceChildren | IAzureDataSourceChildren[] | null>
| IAzureDataSourceChildren
| null
| Array<IAzureDataSourceChildren | IAzureDataSourceChildren[] | null>
| IAzureDataSourceChildren
| null
options?: DataSourceOptions
events?: IAzureMapDataSourceEvent | any
dataFromUrl?: string
collection?:
| atlas.data.FeatureCollection
| atlas.data.Feature<atlas.data.Geometry, any>
| atlas.data.Geometry
| atlas.data.GeometryCollection
| Shape
| Array<atlas.data.Feature<atlas.data.Geometry, any> | atlas.data.Geometry | Shape>
| atlas.data.FeatureCollection
| atlas.data.Feature<atlas.data.Geometry, any>
| atlas.data.Geometry
| atlas.data.GeometryCollection
| Shape
| Array<atlas.data.Feature<atlas.data.Geometry, any> | atlas.data.Geometry | Shape>
index?: number
}

export type IAzureVectorTileSourceStatefulProviderProps = {
id: string
children?:
| Array<IAzureVectorTileSourceChildren | IAzureVectorTileSourceChildren[] | null>
| IAzureVectorTileSourceChildren
| null
| Array<IAzureVectorTileSourceChildren | IAzureVectorTileSourceChildren[] | null>
| IAzureVectorTileSourceChildren
| null
options?: VectorTileSourceOptions
events?: IAzureMapVectorTileSourceEvent
// NOTE: not sure yet why this is needed, haven't seen this used in AzureMapsDataSource, though IAzureGeoJSONDataSourceStatefulProviderProps has it
Expand All @@ -202,16 +202,16 @@ export type IAzureMapLifecycleEvent = {
export type IAzureLayerStatefulProviderProps = {
id?: string
options?:
| (SymbolLayerOptions &
HeatMapLayerOptions &
ImageLayerOptions &
LineLayerOptions &
PolygonExtrusionLayerOptions &
PolygonLayerOptions &
TileLayerOptions &
BubbleLayerOptions &
LayerOptions)
| Options
| (SymbolLayerOptions &
HeatMapLayerOptions &
ImageLayerOptions &
LineLayerOptions &
PolygonExtrusionLayerOptions &
PolygonLayerOptions &
TileLayerOptions &
BubbleLayerOptions &
LayerOptions)
| Options
type: IAzureMapLayerType
events?: IAzureMapLayerEvent | any
onCreateCustomLayer?: (dataSourceRef: DataSourceType, mapRef: MapType | null) => atlas.layer.Layer
Expand Down Expand Up @@ -316,10 +316,10 @@ export type IAzureMapFeature = {
properties?: Options
// Shape functions:
setCoords?:
| atlas.data.Position
| atlas.data.Position[]
| atlas.data.Position[][]
| atlas.data.Position[][][]
| atlas.data.Position
| atlas.data.Position[]
| atlas.data.Position[][]
| atlas.data.Position[][][]
setProperties?: Options
}

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

0 comments on commit 4f75def

Please sign in to comment.