Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@2gis/mapgl

Package Overview
Dependencies
Maintainers
6
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2gis/mapgl - npm Package Compare versions

Comparing version 1.27.0 to 1.28.0

types/objects/raster.d.ts

2

package.json
{
"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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc