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

@2gis/mapgl

Package Overview
Dependencies
Maintainers
3
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.6.0 to 1.7.0

2

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

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

@@ -165,2 +165,11 @@ import { MapOptions, LngLatBounds } from './types';

/**
* Sets the desired map language.
* @param language short string code 'en', 'ru', ...etc
*/
setLanguage(language: string): this;
/**
* Returns the desired map language.
*/
getLanguage(): string;
/**
* Destroys the map and frees all related resources.

@@ -167,0 +176,0 @@ */

@@ -1,2 +0,1 @@

import type { StyleId } from '@webmaps/jakarta';
/**

@@ -15,2 +14,8 @@ * Map initialization options.

/**
* Map style zoom.
* Use this option if you want to set the same zoom that is used in the style settings. The styleZoom and zoom options set the same map scale but in different projections.
* If both options are set, the styleZoom has a higher priority than the zoom option.
*/
styleZoom?: number;
/**
* Minimum map zoom.

@@ -80,5 +85,10 @@ */

/**
* Set style id
* The map style ID, that you can get at https://styles.2gis.com
*/
style?: StyleId;
style?: string;
/**
* The desired map language.
* short language code 'en', 'ru', ...etc
*/
lang?: string;
}

@@ -85,0 +95,0 @@ /**

@@ -1,5 +0,1 @@

/**
* Находит по переданному полному src скрипта значение для callback в GET-параметрах.
* Используется во время отложенной инициализации скрипта карты.
*/
export declare function findCallbackNameInSearchQuery(src: string): string | undefined;
export {};
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