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.46.0 to 1.47.0

2

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

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

@@ -294,6 +294,6 @@ import { MapOptions, FitBoundsOptions, Padding, StyleState, SupportedSimpleOpts, GLContext } from './types';

* Sets a new value for the map option.
* @param option Map option name. Only 'disableDragging', 'enableTrackResize' options are available
* @param option Map option name. Only 'disableDragging', 'enableTrackResize', 'loopWorld' options are available
* @param value New value of the map option.
*/
setOption(option: SupportedSimpleOpts, value: any): this;
setOption<T extends SupportedSimpleOpts>(option: T, value: NonNullable<MapOptions[T]>): this;
/**

@@ -300,0 +300,0 @@ * Gets a value of the map option.

import { Map } from '../map';
import { LabelOptions } from '../types';
import { Evented } from '../utils/evented';
import { DynamicObjectEventTable } from '../types/events';
/**
* Class for creating labels on the map.
*/
export declare class Label {
export declare class Label extends Evented<DynamicObjectEventTable<Label>> {
/**

@@ -46,2 +48,3 @@ * User specific data. Empty by default

getCoordinates(): number[];
private _emitPointerEvent;
}

@@ -39,2 +39,6 @@ import { LngLatBounds } from '../objects/lngLatBounds';

/**
* Loop the map when rendering at large scales or near the anti-meridian
*/
loopWorld?: boolean;
/**
* Map rotation in degrees.

@@ -351,3 +355,7 @@ */

/**
* Geographical coordinates of label center `[longitude, latitude]`.
* An array of numbers `[longitude, latitude, height?]`, where:
* - `longitude` and `latitude` are the geographical coordinates of the top-left corner of the label.
* Taking into account the `relativeAnchor` option.
* - `height` is an optional number in meters by which the label will be raised/lowered (depending on the sign of the value)
* relative to the map surface. 0 by default.
*/

@@ -422,2 +430,17 @@ coordinates: number[];

userData?: any;
/**
* Allows the label to emit events (like `mouseover`). `false` by default.
*/
interactive?: boolean;
/**
* Labeling options
* - `none` - the label is not involved in the labeling process in any way
* - `pointLabelsOnly` - the label overlaps or can be overlapped
* by labels having this labeling option specified as type
*/
labeling?: {
type: 'none';
} | {
type: 'pointLabelsOnly';
};
}

@@ -1033,3 +1056,3 @@ /**

export declare type WebGLVersion = 1 | 2;
export declare type SupportedSimpleOpts = 'disableDragging' | 'enableTrackResize';
export declare type SupportedSimpleOpts = 'disableDragging' | 'enableTrackResize' | 'loopWorld';
export declare type GLContext = WebGLRenderingContext | WebGL2RenderingContext;
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