{
  "slug": "bw-map-magnet",
  "name": "BW Map Magnet",
  "version": "1.4.0",
  "download_url": "https://plugins.bowden.works/wp-content/uploads/plugin-updates/bw-map-magnet-1.4.0.zip",
  "download_hash": "sha256:f7b1fd32d4d432062e0a7f72532d76c0a6563a235f1e87fd72b4d9dd229c9beb",
  "download_size": 227433,
  "requires": "6.0",
  "tested": "",
  "requires_php": "7.4",
  "last_updated": "2026-05-20",
  "homepage": "https://plugins.bowden.works/bw-map-magnet/",
  "author": "Bowden Works",
  "description": "Showcase locations on a map with hover-to-zoom interaction for activities, restaurants, attractions and more.",
  "changelog": "## [1.4.0] - 2026-05-20\n\n### Added\n- **Central focus location.** Set a single \"home\" / \"anchor\" pin (e.g. the resort) in `Map Magnet → Settings` → Central focus location. When enabled:\n  - The central marker is **always shown** on every map and never fades.\n  - **Distinct visual styling** — bigger (40×40), thicker border, glowing ring, configurable icon and color (defaults: amber `#f59e0b` + `landmark` icon).\n  - Hovering an item now **fits bounds to include both the central pin and the hovered item**, so visitors can see distance / direction at a glance. Per-item `focusZoom` caps how close the pair can go.\n  - All **other markers fade out** on hover (opacity 0.18); only the hovered item and the central remain at full opacity.\n  - Item popups gain a **distance line** (\"0.8 km from The Regent Grand\") and a **\"Get directions\" button** that opens Google Maps directions from the central pin to the item.\n  - Distance unit configurable (km or miles). Below 1 unit, distance falls back to metres or feet for readability.\n  - The central pin is included in the idle fit-bounds calculation so it's always on screen.\n- Settings page expanded with a full **central-location editor**: enable toggle, label, lat/lng inputs, **\"Fetch by Google Maps URL\"** field (re-uses the existing AJAX endpoint), an interactive Leaflet preview map (drag-to-adjust), icon picker grid (same library as taxonomy icons), WP color picker, distance toggle/unit, and a customisable \"Get directions\" button label.\n\n### Changed\n- Initial / idle fit-bounds now includes the central pin (when one is set), so the central is always visible at rest.\n- Setting `central_enabled = false` (the default) preserves 1.3 behaviour exactly — no central marker, no fade-out, no popup additions."
}
