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

leaflet-fullhash

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-fullhash

leaflet-fullHash ================

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by16.67%
Maintainers
1
Weekly downloads
 
Created
Source

leaflet-fullHash

Add dynamic URL hash for Leaflet map (map view and active layers). For those who also lack layers state in leaflet-hash plugin. Now you can easily link user to specific map view with certain active layers.

Demo

You can view a demo of leaflet-fullHash here: kogor.github.io/leaflet-fullHash.

Getting started

  1. Include leaflet-fullHash.js.

  2. Once you have initialized the map (an instance of L.Map), add the following code:

        // Assuming your map instance is in a variable called map
        var allMapLayers = {'base_layer_name': leaflet_layer_object,
                            'overlay_name': leaflet_layer_object,
                            'another_overlay_name': leaflet_layer_object};
        var hash = new L.Hash(map, allMapLayers);
    

Here leaflet_layer_object should be instance of any Leaflet layer (based on ILayer).

License

MIT License. See LICENSE for details.

FAQs

Package last updated on 24 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc