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.29.0 to 1.30.0

6

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

@@ -11,3 +11,3 @@ "main": "dist/index.js",

"build:example": "cd example && rm -rf dist && webpack --mode=production",
"typings": "cp -rf ./node_modules/@webmaps/mapgl-api/dist/types ./",
"typings": "cp -rf ./node_modules/@webmaps/mapgl-api/dist/types ./ && rm -fr types/jakarta",
"clean": "rm -rf types dist"

@@ -23,3 +23,3 @@ },

"devDependencies": {
"@webmaps/mapgl-api": "^1.29.0-types",
"@webmaps/mapgl-api": "^1.30.0",
"ts-loader": "^9.2.6",

@@ -26,0 +26,0 @@ "tslib": "^2.3.1",

@@ -20,4 +20,5 @@ import { Map } from './map';

export { LngLatBounds, LngLatBoundsClass } from './objects/lngLatBounds';
export { StyleIconConfig } 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, StretchableImageSource, RasterOptions, RasterSource, } 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, FeatureState, FeatureStateMap, } from './types';
export { DefaultEventTargetData, DynamicObjectEventTable, DynamicObjectPointerEvent, EventTarget, EventTargetData, FloorLevelChangeEvent, FloorPlanHideEvent, FloorPlanShowEvent, GeoJsonEventTargetData, MapEvent, MapEventTable, MapPointerEvent, PointerEvent, StyleLoadEvent, TrafficScoreEvent, TrafficVisibilityEvent, } from './types/events';

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

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

import { LngLatBounds, LngLatBoundsClass } from './objects/lngLatBounds';
import { Layer } from './types/styles';
import { Layer, StyleIconConfig } from './types/styles';
import { DefaultSource } from './sources/defaultSource';

@@ -204,3 +204,3 @@ /**

* Sets the map padding.
* the padding on each side has a clamp to a positive value no larger than the map canvas size for either side
* The padding on each side has a clamp to a positive value no larger than the map canvas size for either side
* @param padding Padding in pixels from the different sides of the map canvas

@@ -211,3 +211,3 @@ * @param options Padding animation options.

/**
* Add a style layer to the current map style.
* Adds a style layer to the current map style.
* @param layer Style layer object.

@@ -223,2 +223,14 @@ * @param beforeId The identifier of an existing layer to insert the new layer before, resulting in the new layer appearing visually beneath the existing layer. If this argument is not specified, the layer will be appended to the end of the layers array and appear visually above all other layers.

/**
* Adds a config of user icon that will be used in the current style.
* If an icon with the same name already exists, it won't be added and applied to the current style.
* @param name A user icon name.
* @param config A config with parameters for user icon.
*/
addIcon(name: string, config: StyleIconConfig): this;
/**
* Removes a specified icon from the current style.
* @param name An icon name to remove.
*/
removeIcon(name: string): this;
/**
* Removes the layer with the given identifier from the current map style.

@@ -225,0 +237,0 @@ * @param layerId The identifier of the layer to remove.

@@ -265,2 +265,7 @@ import { Style } from './styles';

id: string;
/**
* ID of the particular floor.
* It's specified when the target object is a part of a floor plan object (e.g. the room in a building).
*/
floorId?: string;
}

@@ -267,0 +272,0 @@ /**

@@ -30,1 +30,12 @@ export declare type InterpolateExpression<T extends number | string> = [

}
/**
* Config of an original user icon.
*/
export interface StyleIconConfig {
/**
* URL to an icon. It can be:
* - absolute: //external.domain/some_path/some_icon.svg
* - as a template: //{appHost}/some_path/some_icon.svg
*/
url: string;
}
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