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

@2gis/mapgl

Package Overview
Dependencies
Maintainers
8
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.45.2 to 1.46.0

types/controls/metro/index.d.ts

2

package.json
{
"name": "@2gis/mapgl",
"version": "1.45.2",
"version": "1.46.0",
"description": "MapGL API script loader with typings",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -10,2 +10,3 @@ import { Map } from './map';

import { Raster } from './objects/raster';
import { GltfModel } from './objects/gltfModel';
import { Control } from './controls/control';

@@ -19,7 +20,7 @@ import { ZoomControl } from './controls/zoom';

import { DefaultSource } from './sources/defaultSource';
export { Map, Marker, Label, HtmlMarker, Control, ZoomControl, TrafficControl, ScaleControl, FloorControl, CircleMarker, Circle, Polygon, Polyline, GeoJsonSource, DefaultSource, RasterTileSource, Raster, };
export { Map, Marker, Label, HtmlMarker, Control, ZoomControl, TrafficControl, ScaleControl, FloorControl, CircleMarker, Circle, Polygon, Polyline, GeoJsonSource, DefaultSource, RasterTileSource, Raster, GltfModel, };
export { LngLatBounds, LngLatBoundsClass } from './objects/lngLatBounds';
export { StyleIconConfig, StyleOptions } from './types/styles';
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, RasterOptions, RasterSource, FeatureState, FeatureStateMap, } from './types';
export { GltfModelOptions, CircleMarkerOptions, CircleOptions, ControlOptions, ControlPosition, FitBoundsOptions, GeoJsonSourceOptions, HtmlMarkerOptions, LabelImage, LabelOptions, MapOptions, MapSupportOptions, MarkerIconOptions, MarkerLabelOptions, MarkerOptions, Padding, PolygonOptions, PolylineOptions, RasterTileSourceOptions, SourceAttributes, RasterOptions, RasterSource, FeatureState, FeatureStateMap, } from './types';
export { DefaultEventTargetData, DynamicObjectEventTable, DynamicObjectPointerEvent, EventTarget, EventTargetData, FloorLevelChangeEvent, FloorPlanHideEvent, FloorPlanShowEvent, GeoJsonEventTargetData, MapEvent, MapEventTable, MapPointerEvent, PointerEvent, StyleLoadEvent, TrafficScoreEvent, TrafficVisibilityEvent, } from './types/events';

@@ -26,0 +27,0 @@ export { isSupported, notSupportedReason } from './isSuported';

import { LngLatBounds } from '../objects/lngLatBounds';
import { AnimationOptions } from './animations';
import { InterpolateExpression, StyleOptions } from './styles';
import { InterpolateExpression, StepExpression, StyleOptions } from './styles';
import { Feature, FeatureCollection } from 'geojson';
import { RasterTileSource } from '../sources/rasterTileSource';
import { GeoJsonSource } from '../sources/geoJsonSource';
export declare type DiscardApplyOptions = 'maxBounds' | 'styleZoom' | 'modelsTilesUrl' | 'modelsTileSet' | 'defaultSourceModelsRootUrl' | 'defaultSourceModelsAppearStrategy' | 'sessionId' | 'tileSessionId' | 'tileServerDefaultLang' | 'keepCenterWhileUserZoomRotate' | 'preserveDrawingBuffer' | 'useRtlTextPlugin' | 'rtlPluginUrl' | 'rtlPluginHash' | 'commercialPoiRandomSeed' | 'disableSurvivedPoiPrevalence' | 'webglVersion' | 'disableBssStatistics' | 'disableBssStatisticsForCommPoi' | 'bssUrl' | 'disableAntiAliasing' | 'key' | 'zoomControl' | 'trafficControl' | 'scaleControl' | 'floorControl' | 'copyright' | 'interactiveCopyright' | 'autoHideOSMCopyright' | 'controlsLayoutPadding' | 'styleState' | 'styleOptions' | 'styleServer' | 'tileServer' | 'tileProtocol' | 'tileSet' | 'commercialTileSet' | 'trafficServer' | 'trafficProtocol' | 'floorsEnabled' | 'floorsUrl' | 'disableAnalytics' | 'subdomains' | 'metroControl' | 'cameraConfig';
/**

@@ -465,2 +466,6 @@ * Map initialization options.

interactive?: boolean;
/**
* If true, the marker coordinates will not be rounded. By default it's `false`.
*/
disableRounding?: boolean;
}

@@ -934,2 +939,92 @@ /**

}
/**
* Options for GltfModel.
*
* @hidden
*/
export interface GltfModelOptions {
/**
* Geographical coordinates of the model `[longitude, latitude]`.
*/
coordinates: number[];
/**
* An absolute URL where the model is located.
*/
modelSrc: string;
/**
* Scale of the model.
*/
scale?: number | number[];
/**
* Rotation of the model in degrees.
*/
rotation?: number | number[];
/**
* Offset of the model in meters.
*/
offset?: number | number[];
/**
* Buildings' identifiers that should be hidden.
*/
linkedIds?: string[];
/**
* Allows the model to emit events.
*/
interactive?: boolean;
/**
* Minimum display styleZoom of the model.
*/
minZoom?: number;
/**
* Maximum display styleZoom of the model.
*/
maxZoom?: number;
/**
* Draw order.
*/
zIndex?: number;
/**
* Set to `true` if the model should be hidden on initialization.
*/
hideOnInit?: boolean;
/**
* Set to `true` if the model should ignore global lighting.
*/
ignoreGlobalLighting?: boolean;
/**
* An index of a model color texture that should be used.
*/
colorTextureUvIndex?: number;
/**
* A distance to the camera the model gets transparent from.
* It's set in units along Z axis of the WebGL space.
*/
nearCameraFade?: number | InterpolateExpression<number>;
/**
* The percentage of visible model instances in the range from 0.0 to 1.0.
* If it's set to 0.0 there won't be any visible instance and vice versa.
*/
showRatio?: number | InterpolateExpression<number> | StepExpression<number>;
/**
* User specific data.
*/
userData?: any;
/**
* Set to `true` if the model should be shown without animation.
*/
disableAnimation?: boolean;
/**
* The fill gltf color in hexadecimal RGB (`#ff0000`) or RGBA (`#ff0000ff`) format.
*/
color?: string | InterpolateExpression<string>;
/**
* The hover gltf options
*/
hover?: {
/**
* The hover fill gltf color in hexadecimal RGB (`#ff0000`) or RGBA (`#ff0000ff`) format.
*/
color?: string | InterpolateExpression<string>;
};
}
export declare type Source = GeoJsonSource | RasterTileSource;

@@ -936,0 +1031,0 @@ export declare type WebGLVersion = 1 | 2;

@@ -11,2 +11,3 @@ export declare type InterpolateExpression<T extends number | string> = [

];
export declare type StepExpression<T extends number> = ['step', ...T[]];
/**

@@ -13,0 +14,0 @@ * Stub type representing the style layer.

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