react-azure-maps
Advanced tools
Comparing version 0.2.1 to 0.3.0
import { IAzureCustomControls, IAzureMapControls, MapType } from '../../types'; | ||
import atlas from 'azure-maps-control'; | ||
export declare const useCreateMapControls: (mapRef: MapType, controls: IAzureMapControls[]) => void; | ||
export declare const createMapControls: (mapRef: MapType, controls: IAzureMapControls[]) => void; | ||
export declare const createControl: (type: string, options?: atlas.ControlOptions | undefined) => atlas.ControlBase | undefined; | ||
export declare const useCreateMapCustomControls: (mapRef: MapType, customControls: IAzureCustomControls[]) => void; | ||
export declare const createMapCustomControls: (mapRef: MapType, customControls: IAzureCustomControls[]) => void; |
import { IAzureMapImageSprite, MapType } from '../../types'; | ||
export declare const useCreateImageSprites: (mapRef: MapType, spriteArray: IAzureMapImageSprite[]) => Promise<void>; | ||
export declare const createImageSprites: (mapRef: MapType, spriteArray: IAzureMapImageSprite[]) => Promise<void>; |
import { IAzureMapFeature } from '../../types'; | ||
import atlas from 'azure-maps-control'; | ||
export declare const useCreateAzureMapFeature: ({ type, coordinate, coordinates, multipleCoordinates, multipleDimensionCoordinates, bbox }: IAzureMapFeature) => atlas.data.Geometry | undefined; | ||
export declare const createAzureMapFeature: ({ type, coordinate, coordinates, multipleCoordinates, multipleDimensionCoordinates, bbox }: IAzureMapFeature) => atlas.data.Geometry | undefined; |
import React from 'react'; | ||
import { IAzureDataSourceStatefulProviderProps } from '../types'; | ||
declare const AzureMapDataSourceContext: React.Context<import("../types").IAzureMapDataSourceContextState>; | ||
declare const AzureMapDataSourceConsumer: React.Consumer<import("../types").IAzureMapDataSourceContextState>; | ||
declare const Provider: React.Provider<import("../types").IAzureMapDataSourceContextState>, AzureMapDataSourceConsumer: React.Consumer<import("../types").IAzureMapDataSourceContextState>; | ||
/** | ||
@@ -14,2 +14,2 @@ * @param id | ||
declare const AzureMapDataSourceStatefulProvider: ({ id, children, options, events, dataFromUrl, collection }: IAzureDataSourceStatefulProviderProps) => JSX.Element; | ||
export { AzureMapDataSourceContext, AzureMapDataSourceConsumer, AzureMapDataSourceStatefulProvider as AzureMapDataSourceProvider }; | ||
export { AzureMapDataSourceContext, AzureMapDataSourceConsumer, AzureMapDataSourceStatefulProvider as AzureMapDataSourceProvider, Provider as AzureMapDataSourceRawProvider }; |
@@ -1,6 +0,6 @@ | ||
import { IAzureLayerStatefulProviderProps, LayerType } from '../types'; | ||
import { IAzureLayerStatefulProviderProps, LayerType, DataSourceType } from '../types'; | ||
import atlas from 'azure-maps-control'; | ||
export declare const constructLayer: ({ id, options, type }: Omit<IAzureLayerStatefulProviderProps, 'onCreateCustomLayer'>, dataSourceRef: atlas.source.DataSource) => atlas.layer.SymbolLayer | atlas.layer.ImageLayer | atlas.layer.TileLayer | atlas.layer.HeatMapLayer | atlas.layer.LineLayer | atlas.layer.PolygonExtrusionLayer | atlas.layer.PolygonLayer | atlas.layer.BubbleLayer | null; | ||
export declare const constructLayer: ({ id, options, type }: Omit<IAzureLayerStatefulProviderProps, 'onCreateCustomLayer'>, dataSourceRef: DataSourceType) => atlas.layer.SymbolLayer | atlas.layer.ImageLayer | atlas.layer.TileLayer | atlas.layer.HeatMapLayer | atlas.layer.LineLayer | atlas.layer.PolygonExtrusionLayer | atlas.layer.PolygonLayer | atlas.layer.BubbleLayer | null; | ||
export declare const useAzureMapLayer: ({ id, options, type, events, lifecycleEvents, onCreateCustomLayer }: IAzureLayerStatefulProviderProps) => { | ||
layerRef: LayerType | null; | ||
}; |
@@ -5,3 +5,4 @@ export { default as AzureMap } from './components/AzureMap/AzureMap'; | ||
export { AzureMapsContext, AzureMapsConsumer, AzureMapsProvider, useAzureMaps } from './contexts/AzureMapContext'; | ||
export { AzureMapDataSourceContext, AzureMapDataSourceConsumer, AzureMapDataSourceProvider } from './contexts/AzureMapDataSourceContext'; | ||
export { AzureMapDataSourceContext, AzureMapDataSourceConsumer, AzureMapDataSourceProvider, } from './contexts/AzureMapDataSourceContext'; | ||
export { AzureMapVectorTileSourceProvider } from './contexts/AzureMapVectorTileSourceProvider'; | ||
export { AzureMapLayerContext, AzureMapLayerConsumer, AzureMapLayerProvider } from './contexts/AzureMapLayerContext'; | ||
@@ -8,0 +9,0 @@ export { default as AzureMapPopup } from './components/AzureMapPopup/AzureMapPopup'; |
import { ComponentClass, CSSProperties, ReactElement, StatelessComponent } from 'react'; | ||
import atlas, { AnimationOptions, CameraBoundsOptions, CameraOptions, DataSourceOptions, HeatMapLayerOptions, HtmlMarker, HtmlMarkerEvents, HtmlMarkerOptions, ImageLayerOptions, LineLayerOptions, Map, MapDataEvent, MapErrorEvent, MapEvent, MapMouseEvent, MapMouseWheelEvent, MapTouchEvent, Options, PolygonExtrusionLayerOptions, PolygonLayerOptions, PopupEvents, PopupOptions, ServiceOptions, Shape, StyleOptions, SymbolLayerOptions, TargetedEvent, TileLayerOptions, TrafficOptions, UserInteractionOptions, Control, BubbleLayerOptions, LayerOptions } from 'azure-maps-control'; | ||
import atlas, { AnimationOptions, CameraBoundsOptions, CameraOptions, DataSourceOptions, HeatMapLayerOptions, HtmlMarker, HtmlMarkerEvents, HtmlMarkerOptions, ImageLayerOptions, LineLayerOptions, Map, MapDataEvent, MapErrorEvent, MapEvent, MapMouseEvent, MapMouseWheelEvent, MapTouchEvent, Options, PolygonExtrusionLayerOptions, PolygonLayerOptions, PopupEvents, PopupOptions, ServiceOptions, Shape, StyleOptions, SymbolLayerOptions, TargetedEvent, TileLayerOptions, TrafficOptions, UserInteractionOptions, Control, BubbleLayerOptions, LayerOptions, VectorTileSourceOptions } from 'azure-maps-control'; | ||
export declare type IAzureMapOptions = ServiceOptions & StyleOptions & UserInteractionOptions & (CameraOptions | CameraBoundsOptions); | ||
@@ -71,3 +71,3 @@ export declare type IAzureMapChildren = ReactElement<IAzureMapHtmlMarker> | ReactElement<IAzureMapPopup> | ReactElement<IAzureMapDataSourceProps>; | ||
export declare type IAzureMapDataSourceContextState = { | ||
dataSourceRef: atlas.source.DataSource | null; | ||
dataSourceRef: atlas.source.DataSource | atlas.source.VectorTileSource | null; | ||
}; | ||
@@ -78,5 +78,9 @@ export declare type IAzureMapLayerContextState = { | ||
export declare type IAzureDataSourceChildren = IAzureMapFeature | ReactElement<IAzureMapFeature> | ReactElement<IAzureLayerStatefulProviderProps>; | ||
export declare type IAzureVectorTileSourceChildren = ReactElement<IAzureLayerStatefulProviderProps>; | ||
export declare type IAzureMapDataSourceEvent = { | ||
[property in IAzureMapDataSourceEventType]: (e: Shape[]) => void; | ||
}; | ||
export declare type IAzureMapVectorTileSourceEvent = { | ||
[property in IAzureMapSourceEventType]?: (e: atlas.source.VectorTileSource) => void; | ||
}; | ||
export declare type IAzureMapEvent = { | ||
@@ -94,2 +98,9 @@ [property in IAzureMapEventsType]: (e: MapDataEvent | MapErrorEvent | MapTouchEvent | MapMouseEvent | string | MapMouseWheelEvent | MapEvent | atlas.layer.Layer | atlas.source.Source) => void; | ||
}; | ||
export declare type IAzureVectorTileSourceStatefulProviderProps = { | ||
id: string; | ||
children?: Array<IAzureVectorTileSourceChildren | IAzureVectorTileSourceChildren[] | null> | IAzureVectorTileSourceChildren | null; | ||
options?: VectorTileSourceOptions; | ||
events?: IAzureMapVectorTileSourceEvent; | ||
index?: number; | ||
}; | ||
export declare type IAzureMapLayerEvent = { | ||
@@ -134,3 +145,3 @@ [property in IAzureMapLayerEventType]: (e: MapMouseEvent | MapTouchEvent | MapMouseWheelEvent) => void; | ||
export declare type IAzureMapDataSourceProps = IAzureMapDataSourceContextState; | ||
export declare type DataSourceType = atlas.source.DataSource; | ||
export declare type DataSourceType = atlas.source.DataSource | atlas.source.VectorTileSource; | ||
export declare type LayerType = atlas.layer.SymbolLayer | atlas.layer.ImageLayer | atlas.layer.TileLayer; | ||
@@ -137,0 +148,0 @@ export declare type MapType = atlas.Map; |
{ | ||
"name": "react-azure-maps", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "React Wrapper for Azure Maps", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
1280599
39
5095