1.1.1 • Published 10 months ago

@daturon/mapboxgl-layer-manager v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

The Layer Manager for Mapbox GL is a versatile and user-friendly tool designed to streamline the management of map layers within the Mapbox GL environment. This tool simplifies the process of modifying layer order and adjusting and fine-tuning each layer's settings on a map.

Key Features:

Layer Ordering: One of the primary functions of the Layer Manager is to enable users to change the ordering of map layers easily. Whether you need to bring a specific layer to the foreground or send it to the background, this intuitive feature ensures that users can organize layers to meet their mapping needs by providing a new list of layer ordering.

Settings Management: The Layer Manager is a comprehensive solution for handling all aspects of layer settings. Users can access and modify a wide range of properties for each layer, such as layout, paint options, and more.

Quick start

import { useLayerManager } from '@daturon/mapboxgl-layer-manager';

const layerManager = useLayerManager(map.current, sources, layers);

layerManager.renderOrderedLayers([
  'layer-id-1',
  'layer-id-2',
],
{ "layer-id-2": { paint: { "fill-color": "green" } } });

Install

npm:

npm install @daturon/mapboxgl-layer-manager

yarn:

yarn add @daturon/mapboxgl-layer-manager
1.1.1

10 months ago

1.1.0

1 year ago

1.0.15

1 year ago

1.0.11

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago