Skip to content

exporting azure maps subscription enum #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'