UNPKG

map-zoomtospan

Version:

A cross-platform utility designed to calculate the optimal map zoom level and/or center point for a given map viewport, ensuring a balanced view of map features.

70 lines (69 loc) 1.8 kB
{ "name": "map-zoomtospan", "description": "A cross-platform utility designed to calculate the optimal map zoom level and/or center point for a given map viewport, ensuring a balanced view of map features.", "repository": { "type": "git", "url": "git+https://github.com/Foolyou/map-zoomtospan.git" }, "author": "Chen An <chen-an@outlook.com>", "private": false, "keywords": [ "map", "zoom", "zoomtospan", "maplibre", "leaflet", "google-maps-api", "amap", "baidu", "tencent", "microapps", "小程序", "地图", "地图工具", "地图中心点", "地图缩放级别", "地图缩放级别计算", "地图中心点计算", "地图缩放级别计算", "地图中心点计算" ], "version": "1.0.7", "type": "module", "license": "MIT", "main": "./lib/index.js", "module": "./lib/index.js", "types": "./lib/index.d.ts", "scripts": { "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", "tsc": "tsc --project tsconfig.compile.json", "test": "vitest", "test:ui": "vitest --ui --coverage.enabled=true", "coverage": "vitest run --coverage", "preversion": "npm run tsc" }, "devDependencies": { "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", "@types/styled-components": "^5.1.34", "@vitejs/plugin-react": "^4.3.1", "@vitest/coverage-v8": "^2.1.1", "@vitest/ui": "^2.1.1", "geojson": "^0.5.0", "maplibre-gl": "^4.7.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "^6.26.2", "styled-component": "^2.8.0", "styled-components": "^6.1.13", "typescript": "^5.5.3", "vite": "^5.4.1", "vitest": "^2.0.5" }, "files": [ "lib", "README.md" ] }