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

mapbox-gl-controls

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-controls - npm Package Compare versions

Comparing version 1.5.6 to 1.5.7

4

lib/ruler.js

@@ -46,2 +46,3 @@ import mapboxgl from 'mapbox-gl';

* Can be used to convert value to any measuring units
* @param {Array} [options.font=['Roboto Medium']] - Array of fonts.
*/

@@ -62,2 +63,3 @@

this.units = options.units || 'kilometers';
this.font = options.font || ['Roboto Medium'];
this.labelFormat = options.labelFormat || defaultLabelFormat;

@@ -105,3 +107,3 @@ this.mapClickListener = this.mapClickListener.bind(this);

'text-field': '{text}',
'text-font': ['Roboto Medium'],
'text-font': this.font,
'text-anchor': 'top',

@@ -108,0 +110,0 @@ 'text-size': 12,

{
"name": "mapbox-gl-controls",
"version": "1.5.6",
"version": "1.5.7",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "description": "Controls for mapbox-gl",

@@ -144,2 +144,3 @@ # Mapbox Controls

Can be used to convert value to any measuring units
- `options.font` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** Array of fonts. (optional, default `['Roboto Medium']`)

@@ -146,0 +147,0 @@ #### Styles

@@ -16,2 +16,3 @@ import mapboxgl from 'mapbox-gl';

* Can be used to convert value to any measuring units
* @param {Array} [options.font=['Roboto Medium']] - Array of fonts.
*/

@@ -26,2 +27,3 @@

this.units = options.units || 'kilometers';
this.font = options.font || ['Roboto Medium'];
this.labelFormat = options.labelFormat || defaultLabelFormat;

@@ -69,3 +71,3 @@ this.mapClickListener = this.mapClickListener.bind(this);

'text-field': '{text}',
'text-font': ['Roboto Medium'],
'text-font': this.font,
'text-anchor': 'top',

@@ -72,0 +74,0 @@ 'text-size': 12,

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