Socket
Socket
Sign inDemoInstall

@daturon/mapboxgl-layer-manager

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @daturon/mapboxgl-layer-manager

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'


Version published
Weekly downloads
59
decreased by-18.06%
Maintainers
1
Install size
24.8 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 09 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc