=== MapAPlace Connector ===
Contributors: mapaplace
Tags: map, maps, block, webapp
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.1.47
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your MapAPlace account and display published web-app maps directly on WordPress pages.

== Description ==
Create a connection URL in your MapAPlace web application and enter it in MapAPlace Connector in the admin menu. With MapAPlace Core active, add its Map block and choose a published map from the Local maps or Connected maps group in the sidebar. Without Core, add the MapAPlace webapp map block to choose a connected map.

Maps render using the native MapAPlace viewer on the WordPress page. Password-protected maps retain their public password gate. Draft and unpublished maps are unavailable. The private connection credential is encrypted at rest and stays on the server.

Pan, zoom or rotate a connected map in the block editor and save the WordPress page to store that block's starting camera. Each block has its own view; the web-app map is unchanged.

This standalone plugin does not require MapAPlace Core. It displays published web-app maps and receives map-update notifications without replicating local map documents or media.

== Installation ==
1. Upload and activate the plugin.
2. Open MapAPlace Connector in the admin menu.
3. Create and paste a fresh HTTPS connection URL from the web application's Account > WordPress connections screen.
4. Add Core's Map block when Core is active, or the MapAPlace webapp map block when Connector runs alone. Select a published map in the block sidebar.

== Frequently Asked Questions ==
= Does the visitor receive my account credential? =
No. WordPress uses the private credential only to validate the account's published map catalogue. Viewer requests use the public map API and preserve password checks.

= What happens when a map is unpublished? =
The block and public relay check the current published catalogue and fail closed if the map or connection is unavailable.

== Changelog ==
= 0.1.47 =
* Supply the shared SVG path parser to connected Buildings so imported footprints render without the local Buildings plugin.

= 0.1.46 =
* Register the shared Map block when Core is inactive, preserving connected map selections and camera views across Core activation changes.
* Match Core block attributes and show a clear notice for local maps when Core is inactive.

= 0.1.45 =
* Update the shared map renderer with mouse camera gesture support.

= 0.1.44 =
* Preserve empty JSON objects in relayed published maps so connected previews can load.
* Respect Fit map to markers unless the WordPress block has its own saved camera.

= 0.1.43 =
* Keep Connector immediately after Core in the WordPress admin sidebar, preserving the order of other menus.

= 0.1.42 =
* Accept valid streamed map responses from Gutenberg's iframe preview.

= 0.1.41 =
* Retire the original Sync plugin distribution; Connector remains standalone and extends Core's grouped map picker when active.

= 0.1.40 =
* Extend Core's Map block when Core is active; provide a standalone block when Core is absent.
* Group local and connected published maps in the Core block sidebar and render connected maps with the native viewer.
* Save connected map camera views in individual WordPress blocks.

= 0.1.39 =
* Verify form nonces directly in request handlers and sanitize connection URLs.
* Document uncached advisory locks and prefix uninstall variables.
* Update the Tested up to header to WordPress 7.1.

= 0.1.38 =
* Rename the standalone web-app integration to MapAPlace Connector while preserving the separate original MapAPlace Sync plugin.

= 0.1.37 =
* Place the WordPress Sync admin menu immediately after MapAPlace Core.

= 0.1.36 =
* Receive signed map updates and connection revocations with encrypted update credentials and replay protection.
* Preserve public map password and routing requests through the web application's origin guard.

= 0.1.35 =
* Identify invalid hosted pairing responses separately from credential encryption failures.

= 0.1.34 =
* Show safe connection diagnostics when pairing fails.

= 0.1.1 =
* Show safe connection diagnostics when pairing fails.

= 0.1.0 =
* Initial standalone account connection and native published-map Gutenberg block.
