=== MapSwap Pro ===
Contributors: aguseo
Tags: openstreetmap, maps, events, calendar, leaflet
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 8.0
Stable tag: 0.2.0-beta
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

Replaces Google Maps with OpenStreetMap in The Events Calendar Pro's Map View and single venue pages.

== Description ==

MapSwap Pro extends [MapSwap for The Events Calendar](https://wordpress.org/plugins/mapswap-for-the-events-calendar/) by adding OpenStreetMap support for Events Calendar Pro features:

* **Single Venue Map** – Replaces the Google Maps embed on single venue pages with a Leaflet map.
* **Map View** – Replaces the Google Maps-powered map view with a Leaflet-based OpenStreetMap map, including venue markers with popups.
* **Event Card Interaction** – Clicking an event card smoothly pans and zooms the map to the corresponding venue.
* **Pagination Support** – Map and markers update automatically when navigating between pages of events.
* **Tile Provider Settings** – Uses tile URL and attribution settings from the Leaflet Map plugin.

= Requirements =

* [MapSwap for The Events Calendar](https://wordpress.org/plugins/mapswap-for-the-events-calendar/)
* [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
* [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
* [Events Calendar Pro](https://theeventscalendar.com/products/events-calendar-pro/)

== Installation ==

1. Make sure the required plugins are installed and activated.
2. In your WordPress admin, go to Plugins > Add New > Upload Plugin.
3. Upload the `mapswap-pro.zip` file and click "Install Now".
4. Activate the plugin through the 'Plugins' menu in WordPress.
5. Ensure the "Enable MapSwap" option is turned on in the MapSwap settings.

== Frequently Asked Questions ==

= Do I need a Google Maps API key? =

No. This plugin replaces Google Maps entirely with OpenStreetMap, which does not require an API key.

= What about venues without coordinates? =

Venues without latitude and longitude data will not appear as markers on the map. When clicking an event card for such a venue, a popup will inform the user that the event does not have a mappable address.

= Can I customize the map tile provider? =

Yes. MapSwap Pro reads the tile URL and attribution from the Leaflet Map plugin settings.

== Changelog ==

= [0.2.0-beta] 2026-05-07 =

* Fix - Ensure the correct names are used when fetching the plugin options.
* Tweak - Use the new `mapswap_get_options` function to get the plugin settings.
* Tweak - Update the tooltips on the settings page to reflect correct values.

= [0.1.0-beta] =
* Initial beta release.
* Single venue page map support.
* Map View support with OpenStreetMap via Leaflet.
* Event card click-to-zoom with smooth animation on the Map view.
* Pagination support with automatic marker updates on the Map view.
