Gathering detailed insights and metrics for vue2-leaflet-chinatilelayer
Gathering detailed insights and metrics for vue2-leaflet-chinatilelayer
Gathering detailed insights and metrics for vue2-leaflet-chinatilelayer
Gathering detailed insights and metrics for vue2-leaflet-chinatilelayer
npm install vue2-leaflet-chinatilelayer
Typescript
Module System
Node Version
NPM Version
39.2
Supply Chain
93.6
Quality
75.6
Maintenance
50
Vulnerability
99.1
License
Vue (56.1%)
HTML (34.93%)
JavaScript (8.54%)
CSS (0.43%)
Total Downloads
3,328
Last Day
1
Last Week
31
Last Month
51
Last Year
354
5 Stars
28 Commits
1 Watching
15 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.1.16
Package Id
vue2-leaflet-chinatilelayer@1.1.16
Unpacked Size
30.23 kB
Size
7.96 kB
File Count
7
NPM Version
6.14.3
Node Version
12.16.1
Cumulative downloads
Total Downloads
Last day
-94.1%
1
Compared to previous day
Last week
63.2%
31
Compared to previous week
Last month
466.7%
51
Compared to previous month
Last year
-19.4%
354
Compared to previous year
3
2
A Provider for China Tms Service plugin for the vue2-leaflet package.
This is a chinatmsproviders plugin extension for vue2-leaflet package
npm install vue2-leaflet-chinatilelayer
or
yarn add vue2-leaflet-chinatilelayer
Example:
1<template> 2 <l-map style="height: 100vh;" :zoom="zoom" :center="center"> 3 <l-china-tilelayer :layerName="layerName" :options="options" /> 4 </l-map> 5</template> 6 7<script> 8import 'leaflet/dist/leaflet.css' 9import { LMap } from 'vue2-leaflet' 10import LChinaTilelayer from 'vue2-leaflet-chinatilelayer' 11 12export default { 13 components: { LMap, LChinaTilelayer }, 14 data() { 15 return { 16 zoom: 13, 17 layerName: 'GaoDe.Normal.Map', 18 options: { 19 maxZoom: 18, 20 minZoom: 9, 21 }, 22 center: [32.06031863553111, 118.76315116882326], 23 } 24 }, 25} 26</script> 27
If you're using TianDiTu, please apply the key and config it in the option, like this:
1<script> 2import 'leaflet/dist/leaflet.css' 3import { LMap } from 'vue2-leaflet' 4import LChinaTilelayer from 'vue2-leaflet-chinatilelayer' 5 6export default { 7 components: { LMap, LChinaTilelayer }, 8 data() { 9 return { 10 zoom: 13, 11 layerName: 'TianDiTu.Normal.Map', 12 options: { 13 maxZoom: 18, 14 minZoom: 9, 15 key: '***************' 16 }, 17 center: [32.06031863553111, 118.76315116882326], 18 } 19 }, 20} 21</script>
I added a key to the source code, but this key should only be used for testing.
Name | Type | Required | Description |
---|---|---|---|
layerName | Object | Yes | A Leaflet China TileLayer. See leaflet.chinatmsproviders |
options | Object | No | Options to pass to the plugin. See leaflet.chinatmsproviders |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
73 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More