{"_id":"@davidsouthgate/leaflet-clonelayer","_rev":"8-71915ad4c295a13526f46b761a7ca239","name":"@davidsouthgate/leaflet-clonelayer","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.8":{"name":"@davidsouthgate/leaflet-clonelayer","version":"1.0.8","keywords":["leaflet","clone","layer"],"author":{"name":"David Southgate","email":"d@davidsouthgate.co.uk"},"license":"MIT","_id":"@davidsouthgate/leaflet-clonelayer@1.0.8","maintainers":[{"name":"davidsouthgate","email":"d@davidsouthgate.co.uk"}],"homepage":"https://github.com/DavidSouthgate/leaflet-clonelayer","bugs":{"url":"https://github.com/DavidSouthgate/leaflet-clonelayer/issues"},"dist":{"shasum":"b676bca892603a2d66c675bc2af3bea2505af530","tarball":"https://registry.npmjs.org/@davidsouthgate/leaflet-clonelayer/-/leaflet-clonelayer-1.0.8.tgz","fileCount":3,"integrity":"sha512-HxJPqfUNSl9fk/ThjKCgMPq/h93MNJM5kWbaGHFxeiuYxwQ+BvxQ3K0dG/rHI3ZVdooEDA24NJgOrTJ8er6kQQ==","signatures":[{"sig":"MEUCIQDsWicdVkN21LV1ZUC5eH6VkntTKZAHeTwM2wb+X4FLcAIgF89a0QsbK5tIxFYpzWG5xjB9r+VXPp84e3bDu0sZQjM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffPE0CRA9TVsSAnZWagAAoEQP+wbRrzugpJQLFn8A1ze5\nVcu8MuJeQ7R601WA/O+qnYzeQ+Y2l44QrMNg5IMCWFIxXDI2QfBrGX+mU3wG\nQd3FhGmczv9ZXAIIIt9rtMJ46PVDLnNX6v+vFM6ujI7tz++a/sYHkEcbyISD\nVfRRNBTz1C7UTtL7IJuyq2wDaTv/qe4VNkh/fkWxdFBqSCx8mBOrHDaKSYG+\nW8K7AaWeNPY9PdK7l/efeXMoS8LnLudpLu+gOxLmCMFJaVDpqbmpyTFvf/ks\nRPMi9IJ2oU5L6gUP4VTIzi9lNQyQoSGHZqcCA/oea4YZD6uC4fSiKsC90Bzl\nopjJo42HoY6zpva+ngW2mD2WAwSeRICZ75HIuy9+lqUWaPPpoDH+g6qG4UZO\nf8RPVpdUDcHelectwg8kt9nQoTlmwEr6DV9UMboKtYSK8nNUsqQQdu7DBH8H\nF1aPeDtR/DBreOFK/ArR/Out1nZtzBlIO3gJ5DLk83e+tr2Cyi/q9SPE4hoZ\nIXG5bLWTZcAUxypCREVl96IPbVqv5FXmT6pQACqxbb5hSxrQqjcP1VQECqhl\nLMev3SSvo8dgF+2NSr3+RCP/SKIGnwxNWAGeqsa7u7WLm4OifX/qi0XZXWle\nMdiRu04CEBkqouAprRfu7qhKq/SlGW6D2H1rE34NzXseMQfXGeWCbQudHPZt\nf/WX\r\n=PApV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ed78115887ae3175bdac9169ce18d89dd1a6ca2d","scripts":{},"_npmUser":{"name":"davidsouthgate","email":"d@davidsouthgate.co.uk"},"repository":{"url":"git+https://github.com/DavidSouthgate/leaflet-clonelayer.git","type":"git"},"_npmVersion":"6.14.8","description":"Clone leaflet layers. Fork of repo https://github.com/jieter/leaflet-clonelayer by Jan Pieter Waagmeester <jieter@jieter.nl>.","directories":{},"_nodeVersion":"14.12.0","_hasShrinkwrap":false,"peerDependencies":{"leaflet":"^1.7.1"},"_npmOperationalInternal":{"tmp":"tmp/leaflet-clonelayer_1.0.8_1602023731728_0.9072324089612573","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@davidsouthgate/leaflet-clonelayer","version":"1.0.9","description":"Clone leaflet layers. Fork of repo https://github.com/jieter/leaflet-clonelayer by Jan Pieter Waagmeester <jieter@jieter.nl>.","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/DavidSouthgate/leaflet-clonelayer.git"},"keywords":["leaflet","clone","layer"],"author":{"name":"David Southgate","email":"d@davidsouthgate.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/DavidSouthgate/leaflet-clonelayer/issues"},"homepage":"https://github.com/DavidSouthgate/leaflet-clonelayer","peerDependencies":{"leaflet":"^1.9.4"},"_id":"@davidsouthgate/leaflet-clonelayer@1.0.9","gitHead":"a80faa5b8d494731c8f0306843a9b6a379480c2c","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-vLur7A6wfPY64F+0GoB2lTe63mJAKa0fCe6ZEDBsthoWY4onUBVMAIjhUInAS7c5RZ/2Dry1MhFx9jZtn09jLA==","shasum":"0cf30fc415beab3fbbfa3a087d8450ef8fd65d3e","tarball":"https://registry.npmjs.org/@davidsouthgate/leaflet-clonelayer/-/leaflet-clonelayer-1.0.9.tgz","fileCount":11,"unpackedSize":6967,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC42auvSWgDNYBD44BRbHfeqobGZ3L/BkW9gmGa/zbSmQIhAJ2GV05S2Ag4is/JwKkwj6dNNrYE0jJ+ZXL8MnNPY91r"}]},"_npmUser":{"name":"davidsouthgate","email":"development-npm-davidsouthgate@southgate.dev"},"directories":{},"maintainers":[{"name":"davidsouthgate","email":"development-npm-davidsouthgate@southgate.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/leaflet-clonelayer_1.0.9_1778715272442_0.5852422287856442"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-06T22:35:31.681Z","modified":"2026-05-13T23:34:32.728Z","1.0.8":"2020-10-06T22:35:31.853Z","1.0.9":"2026-05-13T23:34:32.603Z"},"bugs":{"url":"https://github.com/DavidSouthgate/leaflet-clonelayer/issues"},"author":{"name":"David Southgate","email":"d@davidsouthgate.co.uk"},"license":"MIT","homepage":"https://github.com/DavidSouthgate/leaflet-clonelayer","keywords":["leaflet","clone","layer"],"repository":{"type":"git","url":"git+https://github.com/DavidSouthgate/leaflet-clonelayer.git"},"description":"Clone leaflet layers. Fork of repo https://github.com/jieter/leaflet-clonelayer by Jan Pieter Waagmeester <jieter@jieter.nl>.","maintainers":[{"name":"davidsouthgate","email":"development-npm-davidsouthgate@southgate.dev"}],"readme":"# Leaflet Clone Layer\n\nLeaflet layer instances cannot be added to different maps in one javascript runtime.\n`leaflet-clonelayer` clones layers to allow reuse.\n\n - Works with leaflet 1.0.3, for Leaflet 0.7.7 support use leaflet-clonelayer@1.0.2\n - Also clones a layer's `options` (including renderers)\n - Used in [jieter/Leaflet.layerscontrol-minimap](https://github.com/jieter/Leaflet.layerscontrol-minimap)\n\nFork of [jieter/leaflet-clonelayer](https://github.com/jieter/leaflet-clonelayer) by Jan Pieter Waagmeester <jieter@jieter.nl>.\n\n## Installatiom\n```bash\nnpm install @davidsouthgate/leaflet-clonelayer\n```\n\n## Example\n\n```JavaScript\nvar cloneLayer = require('@davidsouthgate/leaflet-clonelayer');\n\nvar layer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n\tattribution: '&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>'\n}).addTo(map1);\nconsole.log(L.stamp(layer));  // 1\n\nvar cloned = cloneLayer(layer);\nconsole.log(L.stamp(cloned));  // 2\n\n// Different _leaflet_id, so now we can safely add it to another map\ncloned.addTo(map2);\n```\n\n## Changelog\n\n### 1.0.8 (2020-09-30)\n - Added support for cloning popups included in a layer\n\n### 1.0.5 (2018-02-22)\n - Added support for `L.TileLayer.WMS` [#5](https://github.com/jieter/leaflet-clonelayer/pull/5) by [@mhasbie](https://github.com/mhasbie)\n\n### 1.0.4 (2017-01-31)\n - Drop leaflet 0.7.7 support, use leaflet-clonelayer@1.0.2\n - Also clones a layer's `options` (including renderers)\n","readmeFilename":"README.md"}