WME COL Basemap

Adds aerials from the COL GIS as a basemap for WME

These are versions of this script where the code was updated. Паказаць усе версіі.

  • v4.0.4 01.05.2026

    Update zIndex on layer redraw

    • Update workaround for layer zIndex to use wme-map-layer-removed event when layers are redrawn
    • General code tidying
  • v4.0.3 30.04.2026

    Add WME COL Basemap bug workarounds

    Commented out layer disable functionality and added TODO notes for bug fixes.

  • v4.0.2 30.04.2026

    Update version to 4.0.2 and modify layer visibility logic

    • Add/remove layer when toggled
      • On initial load layer requested tiles regardless of visibility
      • This may fix the issue with incorrect layer indexes
  • v4.0.1 29.04.2026

    Update WME COL Basemap to 4.0.1

    • Add the native layer checkbox again
    • Fix ticket expiry state bug
    • Cleanup general structure a bit more
  • v4.0.0 28.04.2026

    Update WME COL Basemap to version 4.0.0

    feat!: migrate to WME SDK and refactor architecture

    • Bump version to 4.0.0
    • Replace legacy WazeWrap/OpenLayers implementation with WME SDK-based architecture
    • Switch @match rules to @include/@exclude for new editor URLs (incl. beta + SDK paths)
    • Remove external WazeWrap dependency

    Core refactor

    • Rewrite script using async IIFE and modular structure (State, API, Layer, UI)
    • Centralize state management with localStorage persistence
    • Implement API abstraction for ticket/date fetching with auto-refresh logic
    • Add smarter ticket renewal (1 day before expiry)

    Layer handling

    • Replace manual OpenLayers layer with sdk.Map.addTileLayer
    • Add proper layer lifecycle (init, toggle, enable/disable, date switching)
    • Auto-disable layer while map is moving to reduce load

    UI redesign

    • Sidebar tab with controls
    • Draggable on-map “bubble” widget
      • Add synchronized date selectors and power controls
      • Improve UX with persistent bubble position + visibility settings
      • Add manual API token refresh button

    Shortcuts

    • Replace WazeWrap shortcuts with SDK shortcut system
    • Persist and normalize shortcut keys

    Cleanup

    • Remove large amount of legacy code (layer management, UI, settings, init flow)
    • Simplify initialization using SDK_INITIALIZED + wme-ready
  • v3.1.5 24.02.2026

    Fix removal of trustedTypes

    Merge pull request #5 from jangliss/main

    Fix removal of trustedTypes

  • v3.1.4 26.09.2024 Imported from URL
  • v3.1.2 24.08.2023

    update note in sidebar, set link to open current view, and fix some styling

  • v3.1.1 24.08.2023

    update to use sidebar primarily

  • v3.0 09.07.2023

    Version 3:
    - major overhaul to fix bugs and race conditions
    - update UI to include checkbox and refresh button to enable fetching latest dates
    - fixed bug: added bootstrap for WazeWrap loading
    - use Waze custom elements for checkboxes and select element
    - updated to allow for custom shortcuts

  • v2.2 20.03.2023

    update to use new wme scripts api, change layer index to appear above satellite imagery

  • v2.1 21.02.2023

    bugfix for no ticket on first load

  • v2.0 21.02.2023

    2.0 Major Changes

    • no longer needs to run on COL site
    • access to historical imagery
    • shortcut for easy toggling (default is Shift+Q)
    • automatically gets latest imagery when COL updates
  • v1.2 21.01.2023

    update most recent date

  • v1.1 27.10.2022

    Disable layer by default

  • v1.0 27.10.2022