您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Determines which geographical divisions are in a Viewport intersect with the given BBOX.
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/542477/1623829/wmeGisLBBOX.js
checkIntersection(bbox1, bbox2)
getIntersectingCountries(viewportBbox)
getCountriesAndSubsJson()
cleanIntersectingData(intersectingCountries)
fetchAndCheckGeoJsonIntersection(countyCode, subCode, subSubCode, viewportBbox, returnGeoJson)
Welcome to the wmeGisLBBOX
userscript, This script is designed to determine which geographical divisions within a viewport intersect with a specified Bounding Box (BBOX). It can be used to dynamically fetch and process geographical data.
To use wmeGisLBBOX
, you'll need to install it as a userscript. You can use browser extensions like Tampermonkey or Greasemonkey that support userscripts.
Once installed, the script runs automatically and integrates with your web application to process geographical data. The main functionality is encapsulated in the wmeGisLBBOX
class, providing various methods for fetching and intersecting geographical data.
fetchJsonWithCache(url)
Fetches JSON data from a specified URL with caching:
fetchJsonWithCache(url: string): Promise<Object>
checkIntersection(bbox1, bbox2)
Determines if two bounding boxes intersect:
checkIntersection(bbox1: Object, bbox2: Object): boolean
getIntersectingCountries(viewportBbox)
Identifies countries intersecting with the specified viewport:
getIntersectingCountries(viewportBbox: Object): Promise<Array>
getCountriesAndSubsJson()
Fetches and augments country data with subdivision information:
getCountriesAndSubsJson(): Promise<Object>
cleanIntersectingData(intersectingCountries)
Cleans intersecting country data by removing empty subdivisions:
cleanIntersectingData(intersectingCountries: Object)
fetchAndCheckGeoJsonIntersection(countyCode, subCode, subSubCode, viewportBbox, returnGeoJson)
Fetches GeoJSON data for a specified region and checks intersection with a viewport:
fetchAndCheckGeoJsonIntersection(countyCode: string, subCode: string, subSubCode: string, viewportBbox: Object, returnGeoJson: boolean): Promise<boolean|Object>
This script is licensed under the MIT License.
Feel free to contribute to its development on our GitHub repository. Issues, pull requests, and feature suggestions are welcome.
The whatsInView function is a key component of the userscript that interacts with the map SDK to provide a user interface for geographical insights. This function manages the initialization of the SDK and WazeWrap, ensures all necessary components are ready, and sets up the user interface in the WME sidebar. It responds to map movements, updating the content dynamically based on changes in the viewport.
This function is designed to enhance geographical data visibility and usability for users interacting with web maps by providing a straightforward interface and real-time data updates.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址