=== AddonLogic Map Location Field ===
Contributors: snehalpancholi
Tags: map, location, leaflet, openstreetmap, meta field
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an interactive address-geocoding meta field to any post type and display a Leaflet map on the frontend via shortcode.

== Description ==

AddonLogic Map Location Field adds a clean meta box to the post editor where you can type an address, click "Find on Map", and immediately see the geocoded location on an interactive preview map. Coordinates are saved as post meta and displayed on the frontend using the free Leaflet.js library with OpenStreetMap tiles — no API key required.

**Key Features:**

* One-click address geocoding via OpenStreetMap Nominatim
* Draggable pin to fine-tune the exact position
* Three map tile styles: OSM Standard, CartoDB Light, CartoDB Dark
* Frontend shortcode with configurable height and zoom
* Optional address label displayed below the map
* Enable on any public post type via Settings
* No external API key needed
* Lightweight — Leaflet loaded only on pages that use the shortcode

== Installation ==

1. Upload the `map-location-field` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Go to **Settings → Map Location Field** to configure post types and defaults
4. Edit any post/page, fill in the address in the **Map Location** meta box
5. Add `[addlc_map_location]` to the post content to display the map

== Shortcode ==

`[addlc_map_location]`

Attributes:
* `post_id` — ID of the post to display (default: current post)
* `height` — map height in pixels (default: setting value)
* `zoom` — initial zoom level 1–20 (default: setting value)
* `show_address` — yes/no, show address label (default: yes)

== Changelog ==

= 1.0.0 =
* Initial release

== Screenshots ==

1. Meta box in the post editor with address search and map preview
2. Frontend map rendered by the shortcode
3. Settings page
