=== Mapoza Click-to-Load for Google Maps ===
Contributors: piyush3891
Tags: google maps, lazy load, performance, privacy, gdpr
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Load Google Maps embeds only after a visitor clicks, improving privacy and performance.

== Description ==

Mapoza Click-to-Load for Google Maps lets you embed Google Maps in a privacy-friendly and performance-friendly way.

Instead of loading the Google Maps iframe immediately, the plugin shows a placeholder and button first. The map is only loaded after the visitor clicks.

Features:
* Shortcode-based map embedding
* Loads Google Maps iframe embeds on click
* Default settings for height, button text, and privacy message
* Translation-ready
* Lightweight and easy to use

Example shortcode:

[mapoza_ctlgm_google_map embed_url="https://www.google.com/maps/embed?pb=..." height="450px" button_text="Load map"]

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/mapoza-click-to-load-for-google-maps` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to Settings > Click to Load Maps to configure defaults.
4. Add the shortcode to a page or post.

== Frequently Asked Questions ==

= What kind of URLs are supported? =

This plugin supports Google Maps embed URLs copied from Google Maps via Share > Embed a map.

= Does this plugin use the Google Maps JavaScript API? =

No. Version 1.0.0 supports iframe embeds only.

= Can I style the output? =

Yes. You can pass an extra class via the shortcode `class` attribute and target it in your own CSS.

== Screenshots ==

1. Placeholder before the map loads
2. Loaded map after click
3. Plugin settings page

== Changelog ==

= 1.0.1 =
* Improved default button text and privacy message
* Minor UI and UX improvements
* Updated plugin assets and listing presentation

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.
