@2gis/mapgl
Advanced tools
Comparing version 1.27.0 to 1.28.0
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.27.0", | ||
"version": "1.28.0", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -9,2 +9,3 @@ import { Map } from './map'; | ||
import { Polygon } from './objects/polygon'; | ||
import { Raster } from './objects/raster'; | ||
import { Control } from './controls/control'; | ||
@@ -17,6 +18,6 @@ import { ZoomControl } from './controls/zoom'; | ||
import { RasterTileSource } from './sources/rasterTileSource'; | ||
export { Map, Marker, Label, HtmlMarker, Control, ZoomControl, TrafficControl, ScaleControl, FloorControl, CircleMarker, Circle, Polygon, Polyline, GeoJsonSource, RasterTileSource, }; | ||
export { Map, Marker, Label, HtmlMarker, Control, ZoomControl, TrafficControl, ScaleControl, FloorControl, CircleMarker, Circle, Polygon, Polyline, GeoJsonSource, RasterTileSource, Raster, }; | ||
export { LngLatBounds, LngLatBoundsClass } from './objects/lngLatBounds'; | ||
export { AnimationOptions, RotationAnimationOptions, Easing } from './types/animations'; | ||
export { CircleMarkerOptions, CircleOptions, ControlOptions, ControlPosition, FitBoundsOptions, GeoJsonSourceOptions, HtmlMarkerOptions, LabelImage, LabelOptions, MapOptions, MapSupportOptions, MarkerIconOptions, MarkerLabelOptions, MarkerOptions, Padding, PolygonOptions, PolylineOptions, RasterTileSourceOptions, SourceAttributes, StretchableImageSource, } from './types'; | ||
export { CircleMarkerOptions, CircleOptions, ControlOptions, ControlPosition, FitBoundsOptions, GeoJsonSourceOptions, HtmlMarkerOptions, LabelImage, LabelOptions, MapOptions, MapSupportOptions, MarkerIconOptions, MarkerLabelOptions, MarkerOptions, Padding, PolygonOptions, PolylineOptions, RasterTileSourceOptions, SourceAttributes, StretchableImageSource, RasterOptions, RasterSource, } from './types'; | ||
export { DefaultEventTargetData, DynamicObjectEventTable, DynamicObjectPointerEvent, EventTarget, EventTargetData, FloorLevelChangeEvent, FloorPlanHideEvent, FloorPlanShowEvent, GeoJsonEventTargetData, MapEvent, MapEventTable, MapPointerEvent, PointerEvent, StyleLoadEvent, TrafficScoreEvent, TrafficVisibilityEvent, } from './types/events'; | ||
@@ -23,0 +24,0 @@ export { isSupported, notSupportedReason } from './isSuported'; |
@@ -813,2 +813,34 @@ import { LngLatBounds } from '../objects/lngLatBounds'; | ||
} | ||
/** | ||
* Source image for the raster. | ||
*/ | ||
export interface RasterSource { | ||
url: string; | ||
} | ||
export interface RasterOptions { | ||
/** | ||
* Raster geographical bounds in which an image will be displayed. | ||
*/ | ||
bounds: LngLatBounds; | ||
/** | ||
* Source image for the raster. | ||
*/ | ||
image: RasterSource; | ||
/** | ||
* Minimum display styleZoom. | ||
*/ | ||
minZoom?: number; | ||
/** | ||
* Maximum display styleZoom. | ||
*/ | ||
maxZoom?: number; | ||
/** | ||
* Draw order. | ||
*/ | ||
zIndex?: number; | ||
/** | ||
* Raster image opacity. | ||
*/ | ||
opacity?: number | InterpolateExpression<number>; | ||
} | ||
export declare type Source = GeoJsonSource | RasterTileSource; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71130
43
2305