New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@globalfishingwatch/layer-composer

Package Overview
Dependencies
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalfishingwatch/layer-composer - npm Package Compare versions

Comparing version 2.11.1 to 2.12.0

dist/layer-composer-f4e55de0.js

6

CHANGELOG.md
# @globalfishingwatch/layer-composer
## 2.12.0
### Minor Changes
- 08a9236: New basemap
## 2.11.1

@@ -4,0 +10,0 @@

4

dist/generators/basemap/basemap-layers.d.ts
import { Layer, AnySourceImpl } from 'mapbox-gl';
import { Dictionary } from '../../types';
export declare const DEFAULT_LANDMASS_COLOR = "#274777";
export declare const layers: Dictionary<Layer>;
export declare const sources: Dictionary<AnySourceImpl>;
export declare const layers: Dictionary<Layer[]>;
export declare const sources: Dictionary<Record<string, Partial<AnySourceImpl>>>;
//# sourceMappingURL=basemap-layers.d.ts.map

@@ -6,17 +6,31 @@ /// <reference types="mapbox-gl" />

_getStyleSources: (config: BasemapGeneratorConfig) => ({
type: "geojson";
type?: "geojson" | undefined;
setData?: ((data: String | import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties> | import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>) => import("mapbox-gl").GeoJSONSource) | undefined;
getClusterExpansionZoom?: ((clusterId: number, callback: (error: any, zoom: number) => void) => import("mapbox-gl").GeoJSONSource) | undefined;
getClusterChildren?: ((clusterId: number, callback: (error: any, features: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[]) => void) => import("mapbox-gl").GeoJSONSource) | undefined;
getClusterLeaves?: ((cluserId: number, limit: number, offset: number, callback: (error: any, features: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[]) => void) => import("mapbox-gl").GeoJSONSource) | undefined;
id: string;
} | {
type: "video";
type?: "video" | undefined;
getVideo?: (() => HTMLVideoElement) | undefined;
setCoordinates?: ((coordinates: number[][]) => import("mapbox-gl").VideoSource) | undefined;
id: string;
} | {
type: "image";
type?: "image" | undefined;
updateImage?: ((options: import("mapbox-gl").ImageSourceOptions) => import("mapbox-gl").ImageSource) | undefined;
setCoordinates?: ((coordinates: number[][]) => import("mapbox-gl").ImageSource) | undefined;
id: string;
} | {
type: "canvas";
coordinates: number[][];
canvas: string | HTMLCanvasElement;
type?: "canvas" | undefined;
coordinates?: number[][] | undefined;
canvas?: string | HTMLCanvasElement | undefined;
play?: (() => void) | undefined;
pause?: (() => void) | undefined;
getCanvas?: (() => HTMLCanvasElement) | undefined;
setCoordinates?: ((coordinates: number[][]) => import("mapbox-gl").CanvasSource) | undefined;
id: string;
} | {
type: "vector";
setTiles?: ((tiles: readonly string[]) => import("mapbox-gl").VectorSourceImpl) | undefined;
setUrl?: ((url: string) => import("mapbox-gl").VectorSourceImpl) | undefined;
type?: "vector" | undefined;
url?: string | undefined;

@@ -34,3 +48,3 @@ tiles?: string[] | undefined;

} | {
type: "raster";
type?: "raster" | undefined;
url?: string | undefined;

@@ -46,3 +60,3 @@ tiles?: string[] | undefined;

} | {
type: "raster-dem";
type?: "raster-dem" | undefined;
url?: string | undefined;

@@ -58,36 +72,35 @@ tiles?: string[] | undefined;

})[];
_getStyleLayers: (config: BasemapGeneratorConfig) => {
layout: {
visibility: string;
};
id: string;
type?: "symbol" | "raster" | "fill" | "line" | "circle" | "fill-extrusion" | "background" | "heatmap" | "hillshade" | undefined;
metadata?: any;
ref?: string | undefined;
source?: string | import("mapbox-gl").VectorSource | import("mapbox-gl").RasterSource | import("mapbox-gl").RasterDemSource | import("mapbox-gl").GeoJSONSourceRaw | import("mapbox-gl").VideoSourceRaw | import("mapbox-gl").ImageSourceRaw | import("mapbox-gl").CanvasSourceRaw | undefined;
'source-layer'?: string | undefined;
minzoom?: number | undefined;
maxzoom?: number | undefined;
interactive?: boolean | undefined;
filter?: any[] | undefined;
paint?: import("mapbox-gl").BackgroundPaint | import("mapbox-gl").FillPaint | import("mapbox-gl").FillExtrusionPaint | import("mapbox-gl").LinePaint | import("mapbox-gl").SymbolPaint | import("mapbox-gl").RasterPaint | import("mapbox-gl").CirclePaint | import("mapbox-gl").HeatmapPaint | import("mapbox-gl").HillshadePaint | undefined;
}[];
_getStyleLayers: (config: BasemapGeneratorConfig) => import("mapbox-gl").Layer[];
getStyle: (config: BasemapGeneratorConfig) => {
id: string;
sources: ({
type: "geojson";
type?: "geojson" | undefined;
setData?: ((data: String | import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties> | import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>) => import("mapbox-gl").GeoJSONSource) | undefined;
getClusterExpansionZoom?: ((clusterId: number, callback: (error: any, zoom: number) => void) => import("mapbox-gl").GeoJSONSource) | undefined;
getClusterChildren?: ((clusterId: number, callback: (error: any, features: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[]) => void) => import("mapbox-gl").GeoJSONSource) | undefined;
getClusterLeaves?: ((cluserId: number, limit: number, offset: number, callback: (error: any, features: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[]) => void) => import("mapbox-gl").GeoJSONSource) | undefined;
id: string;
} | {
type: "video";
type?: "video" | undefined;
getVideo?: (() => HTMLVideoElement) | undefined;
setCoordinates?: ((coordinates: number[][]) => import("mapbox-gl").VideoSource) | undefined;
id: string;
} | {
type: "image";
type?: "image" | undefined;
updateImage?: ((options: import("mapbox-gl").ImageSourceOptions) => import("mapbox-gl").ImageSource) | undefined;
setCoordinates?: ((coordinates: number[][]) => import("mapbox-gl").ImageSource) | undefined;
id: string;
} | {
type: "canvas";
coordinates: number[][];
canvas: string | HTMLCanvasElement;
type?: "canvas" | undefined;
coordinates?: number[][] | undefined;
canvas?: string | HTMLCanvasElement | undefined;
play?: (() => void) | undefined;
pause?: (() => void) | undefined;
getCanvas?: (() => HTMLCanvasElement) | undefined;
setCoordinates?: ((coordinates: number[][]) => import("mapbox-gl").CanvasSource) | undefined;
id: string;
} | {
type: "vector";
setTiles?: ((tiles: readonly string[]) => import("mapbox-gl").VectorSourceImpl) | undefined;
setUrl?: ((url: string) => import("mapbox-gl").VectorSourceImpl) | undefined;
type?: "vector" | undefined;
url?: string | undefined;

@@ -105,3 +118,3 @@ tiles?: string[] | undefined;

} | {
type: "raster";
type?: "raster" | undefined;
url?: string | undefined;

@@ -117,3 +130,3 @@ tiles?: string[] | undefined;

} | {
type: "raster-dem";
type?: "raster-dem" | undefined;
url?: string | undefined;

@@ -129,18 +142,3 @@ tiles?: string[] | undefined;

})[];
layers: {
layout: {
visibility: string;
};
id: string;
type?: "symbol" | "raster" | "fill" | "line" | "circle" | "fill-extrusion" | "background" | "heatmap" | "hillshade" | undefined;
metadata?: any;
ref?: string | undefined;
source?: string | import("mapbox-gl").VectorSource | import("mapbox-gl").RasterSource | import("mapbox-gl").RasterDemSource | import("mapbox-gl").GeoJSONSourceRaw | import("mapbox-gl").VideoSourceRaw | import("mapbox-gl").ImageSourceRaw | import("mapbox-gl").CanvasSourceRaw | undefined;
'source-layer'?: string | undefined;
minzoom?: number | undefined;
maxzoom?: number | undefined;
interactive?: boolean | undefined;
filter?: any[] | undefined;
paint?: import("mapbox-gl").BackgroundPaint | import("mapbox-gl").FillPaint | import("mapbox-gl").FillExtrusionPaint | import("mapbox-gl").LinePaint | import("mapbox-gl").SymbolPaint | import("mapbox-gl").RasterPaint | import("mapbox-gl").CirclePaint | import("mapbox-gl").HeatmapPaint | import("mapbox-gl").HillshadePaint | undefined;
}[];
layers: import("mapbox-gl").Layer[];
};

@@ -147,0 +145,0 @@ }

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

import"../_tslib-7e4e3387.js";export{a as DEFAULT_BASEMAP_COLOR,b as HEATMAP_COLOR_RAMPS,H as HEATMAP_GEOM_TYPES,G as default}from"../layer-composer-6936ca78.js";import"../types/index.js";
import"../_tslib-7e4e3387.js";export{a as DEFAULT_BASEMAP_COLOR,b as HEATMAP_COLOR_RAMPS,H as HEATMAP_GEOM_TYPES,G as default}from"../layer-composer-f4e55de0.js";import"../types/index.js";
//# sourceMappingURL=index.js.map

@@ -59,3 +59,3 @@ import { FeatureCollection } from 'geojson';

*/
basemap?: string;
basemap: BasemapType;
}

@@ -197,4 +197,3 @@ /**

Satellite = "satellite",
Landmass = "landmass",
Graticules = "graticules"
Default = "basemap_default"
}

@@ -201,0 +200,0 @@ export declare type RawEvent = {

@@ -23,2 +23,3 @@ import { FeatureCollection } from 'geojson';

} | undefined;
filter?: any;
id: string;

@@ -46,2 +47,3 @@ }[];

} | undefined;
filter?: any;
id: string;

@@ -48,0 +50,0 @@ }[];

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

import"./_tslib-7e4e3387.js";export{D as DEFAULT_CONFIG,t as Generators,L as default}from"./layer-composer-6936ca78.js";import"./types/index.js";export{c as convertLegacyGroups,s as sort}from"./sort-08d6d8d4.js";export{g as getInteractiveLayerIds}from"./getInteractiveLayerIds-4865bc1d.js";export{T as TRACK_FIELDS,t as trackSegments}from"./track-segments-7d93abe2.js";
import"./_tslib-7e4e3387.js";export{D as DEFAULT_CONFIG,t as Generators,L as default}from"./layer-composer-f4e55de0.js";import"./types/index.js";export{c as convertLegacyGroups,s as sort}from"./sort-08d6d8d4.js";export{g as getInteractiveLayerIds}from"./getInteractiveLayerIds-4865bc1d.js";export{T as TRACK_FIELDS,t as trackSegments}from"./track-segments-7d93abe2.js";
//# sourceMappingURL=index.js.map
{
"name": "@globalfishingwatch/layer-composer",
"version": "2.11.1",
"version": "2.12.0",
"description": "",

@@ -53,3 +53,3 @@ "author": "satellitestudio <contact@satellitestud.io>",

},
"gitHead": "bd384cf855d479c729982cf6093a632ed6aac32b"
"gitHead": "61353bcef5224ea50390524eaee3cc93fd0991d0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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