{
  "slug": "bw-map-magnet",
  "name": "BW Map Magnet",
  "version": "1.2.0",
  "download_url": "https://plugins.bowden.works/wp-content/uploads/plugin-updates/bw-map-magnet-1.2.0.zip",
  "download_hash": "sha256:788efdc9784da3c9b17ecfc2152545b5be1e644f56cde8e0ca929f39b0980892",
  "download_size": 217182,
  "requires": "6.0",
  "tested": "",
  "requires_php": "7.4",
  "last_updated": "2026-05-14",
  "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.2.0] - 2026-05-14\n\n### Added\n- \"Fetch by Google Maps URL\" field on the Map Item edit screen. Paste any Google Maps share URL (long form, short `maps.app.goo.gl`, or simple `?q=lat,lng`) and click \"Fetch location\" — the plugin extracts coordinates server-side and drops the pin precisely. Tries the pin-position pattern (`!3d!4d`) first, then map-center (`@LAT,LNG`), then query-string forms. Short URLs are resolved by following the response body for embedded coordinates. Status label reports whether the result came from the pin position or the visible map center (so the user knows whether to drag-adjust).\n- AJAX endpoint `wp_ajax_bw_map_magnet_gmaps_lookup` with nonce + `edit_posts` capability check and a strict allowlist of Google host names. Uses `wp_safe_remote_get()` (no internal addresses, no SSRF).\n- A friendly Grace Bay default centre when adding a new Map Item without coordinates (was: Cathedral Grove, BC).\n\n### Fixed\n- The admin map no longer hijacks the pin when you click on it while reviewing an already-placed marker. Map clicks now only place the pin when no marker exists yet; after that, the marker is only moved by dragging it, editing the lat/lng inputs, or using one of the explicit \"Find\" / \"Fetch by Google Maps URL\" actions. This was the source of the \"values seem to reset easily when I click away\" issue — incidental map clicks were overwriting the placed coordinates.\n- The Nominatim \"Find\" failure message now suggests using the Google Maps URL option, since OSM frequently lacks business listings."
}
