Greasy Fork 还支持 简体中文。

WME GIS Layers

Adds GIS layers in WME

Dette er versioner af dette script, hvor koden er blevet opdateret. Vis alle versioner.

  • v2026.04.14.00 14.04.2026

    ⚡ Performance: Chunked async feature processing — large layers no longer freeze WME 📊 Performance: Added timing metrics per layer (fetch / processing / map update time) 🔍 Performance: Feature counts now show pre-dedup vs post-dedup in console logs

  • v2026.04.14.00 14.04.2026

    ⚡ Performance: Chunked async feature processing — large layers no longer freeze WME 📊 Performance: Added timing metrics per layer (fetch / processing / map update time) 🔍 Performance: Feature counts now show pre-dedup vs post-dedup in console logs

  • v2026.02.27.00 27.02.2026

    🐛 Bug Fixes & UI Polish 📊 Added "Total Layers" count to the stats bar (Regions / Total / Showing / Active) 🔢 Fixed "Active" layer count — now updates correctly when toggling layers on/off 📌 "Clear All Regions" button now collapses with the region selector ↔️ Layers/Settings tabs and Search box now correctly span full width across all browsers

  • v2026.02.27.00 27.02.2026

    🐛 Bug Fixes & UI Polish 📊 Added "Total Layers" count to the stats bar (Regions / Total / Showing / Active) 🔢 Fixed "Active" layer count — now updates correctly when toggling layers on/off 📌 "Clear All Regions" button now collapses with the region selector ↔️ Layers/Settings tabs and Search box now correctly span full width across all browsers

  • v2026.02.25.00 25.02.2026

    🎉 Major Update: Complete UI Redesign! ✨ Region selector now on Layers tab (no more tab switching!) 🔍 Added Search filter for layers alongside Viewport/Zoom 🌙 Modern blue theme with full Dark Mode support 📐 Better visual hierarchy, spacing, and consistency throughout

  • v2026.02.25.00 25.02.2026

    🎉 Major Update: Complete UI Redesign! ✨ Region selector now on Layers tab (no more tab switching!) 🔍 Added Search filter for layers alongside Viewport/Zoom 🌙 Modern blue theme with full Dark Mode support 📐 Better visual hierarchy, spacing, and consistency throughout

  • v2026.02.13.01 13.02.2026

    Minor bug fixes to make layer styles more stable!

  • v2026.02.13.01 13.02.2026

    Minor bug fixes to make layer styles more stable!

  • v2026.02.09.01 09.02.2026

    Moved Style information from code to GoogleSheet

  • v2026.02.09.01 09.02.2026

    Moved Style information from code to GoogleSheet

  • v2026.01.25.01 25.01.2026

    Push Fix again

  • v2026.01.25.000 25.01.2026

    concurrently fetch first-level subdivision data for all countries that have subdivisions

  • v2026.01.25.000 25.01.2026

    concurrently fetch first-level subdivision data for all countries that have subdivisions

  • v2025.12.16.000 16.12.2025

    Improve API error handling in fetchFeatures for non-HTTP errors

    • Fixes silent failures when servers return HTTP 200 but API body indicates error (e.g., ArcGIS "status: error", "messages")
    • Adds robust error detection for ArcGIS REST and Socrata platforms ("status: error", "status: failed", "error" property)
    • Clearly updates layer UI (red label, tooltip) for any parsing/API/network/HTTP error
    • Enhances log output with detailed error type and message for easier debugging
    • Expands code comments for error handling paths to clarify behavior and future maintenance
  • v2025.12.16.000 16.12.2025

    Improve API error handling in fetchFeatures for non-HTTP errors

    • Fixes silent failures when servers return HTTP 200 but API body indicates error (e.g., ArcGIS "status: error", "messages")
    • Adds robust error detection for ArcGIS REST and Socrata platforms ("status: error", "status: failed", "error" property)
    • Clearly updates layer UI (red label, tooltip) for any parsing/API/network/HTTP error
    • Enhances log output with detailed error type and message for easier debugging
    • Expands code comments for error handling paths to clarify behavior and future maintenance
  • v2025.11.7.000 07.11.2025

    Fixed label path curvature (pathLabelCurve) for edge cases where text could split and appear above/below the line; now generates smoother, more reliable label paths.

  • v2025.11.7.000 07.11.2025

    Fixed label path curvature (pathLabelCurve) for edge cases where text could split and appear above/below the line; now generates smoother, more reliable label paths.

  • v2025.11.1.000 01.11.2025

    Refactor label processing globals and add polygon feature deduplication

    • Added a new variable for use in label processing functions: zoomLevel
    • Removed access to the full SDK in label processing functions; currently only zoomLevel is needed based on the reviewed layer definitions
    • Note: If additional variables are needed in the future, please let me know. Making SDK calls within label processing can introduce unnecessary overhead and slowness
    • Added feature deduplication logic for polygon layers, helping to reduce overlapping labels by combining features into one
  • v2025.11.1.000 01.11.2025

    Refactor label processing globals and add polygon feature deduplication

    • Added a new variable for use in label processing functions: zoomLevel
    • Removed access to the full SDK in label processing functions; currently only zoomLevel is needed based on the reviewed layer definitions
    • Note: If additional variables are needed in the future, please let me know. Making SDK calls within label processing can introduce unnecessary overhead and slowness
    • Added feature deduplication logic for polygon layers, helping to reduce overlapping labels by combining features into one
  • v2025.10.13.00 13.10.2025 Imported from URL
  • v2025.09.11.00 11.09.2025

    Offset functionality fixed!

  • v2025.09.11.00 11.09.2025

    Offset functionality fixed!

  • v2025.09.09.00 09.09.2025

    ✨ New Features: • Added font size selection dropdown to label settings • Updated list of commonly used system fonts for better readability • Font style and type are now saved as part of layer groups

    🔧 Improvements: • Fixed label handling for multiple point features in the same location • Labels now consolidate address ranges by street name

    📍 Example: When multiple addresses exist at the same coordinates: • 1101 SW CHAPEL LN, 1105 SW CHAPEL LN, 1201 SW CHAPEL LN, 1301 SW FLOYD LN, 1305 SW FLOYD LN

    They now display as consolidated ranges: • 1101-1201 SW CHAPEL LN • 1301-1305 SW FLOYD LN

  • v2025.09.09.00 09.09.2025

    ✨ New Features: • Added font size selection dropdown to label settings • Updated list of commonly used system fonts for better readability • Font style and type are now saved as part of layer groups

    🔧 Improvements: • Fixed label handling for multiple point features in the same location • Labels now consolidate address ranges by street name

    📍 Example: When multiple addresses exist at the same coordinates: • 1101 SW CHAPEL LN, 1105 SW CHAPEL LN, 1201 SW CHAPEL LN, 1301 SW FLOYD LN, 1305 SW FLOYD LN

    They now display as consolidated ranges: • 1101-1201 SW CHAPEL LN • 1301-1305 SW FLOYD LN

  • v2025.08.28.00 28.08.2025

    Add font selection dropdown to label settings; include multiple commonly used system fonts for improved customization.

    GIS Feature Fetching: Performance, Stability, Concurrency

    Viewport Cache

    • Prevents redundant region queries by caching map extent hashes.

    Layer Fetching Improvements

    • Layers are now grouped by host, and concurrent requests are batched per server to avoid overloading any one GIS data provider (host concurrency limits).
    • Robust error handling per-host and per-layer, with UI feedback on individual layer failures.

    Cancellation / Async Safety

    • Fetches are now cancellation-aware, with lastToken management and debounced fetch to avoid race conditions on rapid map moves.

    General Reliability / Snappier UI

    • Deferred/Immediate Fetch Control:
      • User settings triggers (checkbox/radio changes, group loading) always save settings and trigger an immediate fetch.
      • Map movement is always debounced to prevent unnecessary load.

    General Code Cleanup and Documentation

    • Code Comments:
      • Many added/expanded JSDoc block comments and detailed parameter/return value descriptions.
    • Reordering:
      • Code restructured with helpers and settings at the top; UI and operational logic collected and more clearly separated.

    Closes #66 Closes #49 Closes #45

  • v2025.08.28.00 28.08.2025

    Add font selection dropdown to label settings; include multiple commonly used system fonts for improved customization.

    GIS Feature Fetching: Performance, Stability, Concurrency

    Viewport Cache

    • Prevents redundant region queries by caching map extent hashes.

    Layer Fetching Improvements

    • Layers are now grouped by host, and concurrent requests are batched per server to avoid overloading any one GIS data provider (host concurrency limits).
    • Robust error handling per-host and per-layer, with UI feedback on individual layer failures.

    Cancellation / Async Safety

    • Fetches are now cancellation-aware, with lastToken management and debounced fetch to avoid race conditions on rapid map moves.

    General Reliability / Snappier UI

    • Deferred/Immediate Fetch Control:
      • User settings triggers (checkbox/radio changes, group loading) always save settings and trigger an immediate fetch.
      • Map movement is always debounced to prevent unnecessary load.

    General Code Cleanup and Documentation

    • Code Comments:
      • Many added/expanded JSDoc block comments and detailed parameter/return value descriptions.
    • Reordering:
      • Code restructured with helpers and settings at the top; UI and operational logic collected and more clearly separated.

    Closes #66 Closes #49 Closes #45

  • v2025.08.24.00 24.08.2025

    Improved keyboard shortcut migration and persistence.

    Shortcuts are more reliably registered with the SDK and saved across sessions.

  • v2025.08.24.00 24.08.2025

    Improved keyboard shortcut migration and persistence.

    Shortcuts are more reliably registered with the SDK and saved across sessions.

  • v2025.08.10.00 10.08.2025

    Switch to Sheets Visualization API /gviz endpoint for public layer definitions (removes API key/referrer requirement)

    Body: Replaces the previous use of the Sheets v4 API (which required an API key and allowed requests only from approved referrers) with the Visualization API /gviz endpoint. This new approach no longer requires an API key or referer header, making GIS layer definition loading more reliable—especially for users running privacy extensions or content blockers (like AdGuard) that may strip HTTP headers. (Original implementation would sometimes fail with 403 errors: "Requests from referer are blocked.") The change also simplifies code and avoids needing to manage an API key.

    Uses /gviz/tq? for tabular JSON output from Google Sheets Supports public sheets ("anyone with link can view") Removes risk of intermittent spreadsheet loading failures due to missing headers Code updated to parse Visualization API output instead of Sheets v4 API response Closes #70

  • v2025.08.10.00 10.08.2025

    Switch to Sheets Visualization API /gviz endpoint for public layer definitions (removes API key/referrer requirement)

    Body: Replaces the previous use of the Sheets v4 API (which required an API key and allowed requests only from approved referrers) with the Visualization API /gviz endpoint. This new approach no longer requires an API key or referer header, making GIS layer definition loading more reliable—especially for users running privacy extensions or content blockers (like AdGuard) that may strip HTTP headers. (Original implementation would sometimes fail with 403 errors: "Requests from referer are blocked.") The change also simplifies code and avoids needing to manage an API key.

    Uses /gviz/tq? for tabular JSON output from Google Sheets Supports public sheets ("anyone with link can view") Removes risk of intermittent spreadsheet loading failures due to missing headers Code updated to parse Visualization API output instead of Sheets v4 API response Closes #70

  • v2025.08.01.00 01.08.2025

    Major update: Socrata support + documentation links

    • Release version: 2025.08.01.00
    • Add support for layers hosted via the SOCRATA platform.
    • Users can now add data layers from any SOCRATA-powered government open data portal.
    • Added documentation/help links:
      • Explore available data via Open Data Network.
      • Guides for creating a Socrata (Tyler Data & Insights) account and generating App Tokens.
    • Updated settings to support saving a Socrata App Token.
  • v2025.08.01.00 01.08.2025

    Major update: Socrata support + documentation links

    • Release version: 2025.08.01.00
    • Add support for layers hosted via the SOCRATA platform.
    • Users can now add data layers from any SOCRATA-powered government open data portal.
    • Added documentation/help links:
      • Explore available data via Open Data Network.
      • Guides for creating a Socrata (Tyler Data & Insights) account and generating App Tokens.
    • Updated settings to support saving a Socrata App Token.
  • v2025.07.27.00 27.07.2025

    Major update: 2025.07.27.00

    New: Saved Layer Groups!

    • Easily save, load, and manage sets of visible layers and region selections using a new popup dialog.
    • Access the new "Manage Custom Groups" popup in Settings > Layer Groupings.

    New "Load All Layers" option: Instantly loads every County and State layer, making it even easier to create groups across states.

  • v2025.07.27.00 27.07.2025

    Major update: 2025.07.27.00

    New: Saved Layer Groups!

    • Easily save, load, and manage sets of visible layers and region selections using a new popup dialog.
    • Access the new "Manage Custom Groups" popup in Settings > Layer Groupings.

    New "Load All Layers" option: Instantly loads every County and State layer, making it even easier to create groups across states.

  • v2025.07.14.00 14.07.2025

    Convert legacy selectedStates array to the updated selectedSubL1 with 'USA-' prefixes for backward compatibility.

  • v2025.07.14.00 14.07.2025

    Convert legacy selectedStates array to the updated selectedSubL1 with 'USA-' prefixes for backward compatibility.

  • v2025.07.13.01 13.07.2025

    Small Fix to load Kenya layers

  • v2025.07.13.01 13.07.2025

    Small Fix to load Kenya layers

  • v2025.07.13.000 13.07.2025

    Move to "// @require https://update.greasyfork.org/scripts/542477/1623802/wmeGisLBBOX.js"

  • v2025.07.01.001 01.07.2025

    Minor update: Enhanced to play nice with "Dark Mode" !

  • v2025.07.01.001 01.07.2025

    Minor update: Enhanced to play nice with "Dark Mode" !

  • v2025.06.22.000 22.06.2025

    Minor update: Enhanced the ArcGIS platform API calls by leveraging the MaxAllowableOffset capability based on zoom level. This optimization reduces data retrieval size, ensuring faster responses and minimizing unnecessary data load at wider zoom scales.

  • v2025.06.22.000 22.06.2025

    Minor update: Enhanced the ArcGIS platform API calls by leveraging the MaxAllowableOffset capability based on zoom level. This optimization reduces data retrieval size, ensuring faster responses and minimizing unnecessary data load at wider zoom scales.

  • v2025.06.15.000 15.06.2025

    SDK Performance and Stability Update

    1. Major performance gain by changing the way the script adds features using the SDK.
    2. Esri URLs to return data in EPSG:4326 projection.
    3. Corrections for label settings (HN, Name, Both, None).
    4. Improved conversion of Esri geometry rings to polygons.
    5. Fixed functionality for displayLabelsAtZoom.
  • v2025.06.15.000 15.06.2025

    SDK Performance and Stability Update

    1. Major performance gain by changing the way the script adds features using the SDK.
    2. Esri URLs to return data in EPSG:4326 projection.
    3. Corrections for label settings (HN, Name, Both, None).
    4. Improved conversion of Esri geometry rings to polygons.
    5. Fixed functionality for displayLabelsAtZoom.
  • v2025.05.25.000 25.05.2025

    Update to use the WME SDK

    Still need to figure out what to do about path-following-labels on roads, though.

    Merge branch 'sdk-update'

  • v2025.05.25.000 25.05.2025

    Update to use the WME SDK

    Still need to figure out what to do about path-following-labels on roads, though.

    Merge branch 'sdk-update'

  • v2025.05.08.000 08.05.2025

    Save state of collapsible sections

  • v2025.05.08.000 08.05.2025

    Save state of collapsible sections

  • v2025.05.07.001 07.05.2025

    Fix bug where road segment names don't stay on screen

Vis alle script-versioner