=== Stop Map – Interactive Maps ===
Contributors: hybridationartworks
Tags: maps, map, locations, leaflet, shortcode
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create an interactive map of stops in WordPress with a simple visual editor.

== Description ==

Stop Map – Interactive Maps, developed by Plugingo, helps you create an interactive map with stops, titles, details and Google Maps links. Add the map to a page or post with the `[plugingo_stop_map id="123"]` shortcode.

The FREE edition is designed for maps focused on Italy. It includes a simple map editor, marker management and the standard OpenStreetMap style.

Need custom map styles, location search, custom center and zoom controls? The PRO edition by Plugingo adds advanced map settings and is available from Plugingo.it.

FREE and PRO are separate editions and should not be active at the same time.

== Features ==

* Create multiple maps with a visual editor.
* Add, edit and remove map stops.
* Set a title, details and Google Maps link for each stop.
* Embed maps with a shortcode.
* Uses Leaflet and OpenStreetMap tiles.
* Focused on Italy: stops must be inside 35–47.2 degrees north and 6–19 degrees east (a bounding box, not a country-boundary check).

== Installation ==

1. Install Plugingo Stop Map from Plugins > Add New or upload the plugin ZIP.
2. Activate the plugin.
3. Open Mappe fermate in the WordPress admin and create a map.
4. Add stops by clicking the map and complete their details.
5. Publish the map and add `[plugingo_stop_map id="123"]` to a page or post, replacing `123` with the map ID.

== Privacy ==

The plugin does not send map content, visitor data or usage analytics to Plugingo.

FREE does not include location search and does not contact Nominatim. PRO is distributed separately and its executable code, licensing and updater are not included here.

== External services ==

OpenStreetMap provides the map tile images needed to display the editor and published maps. When a map loads, the visitor or editor browser requests tiles from https://tile.openstreetmap.org/. These requests expose the browser IP address, requested tile coordinates, browser request headers and potentially the referring site URL to that provider. Stop titles and descriptions are not submitted to Plugingo or a geocoding API. The FREE edition uses only OpenStreetMap tiles; JavaScript and CSS are bundled locally.

Before publishing, review the [OpenStreetMap privacy policy](https://osmfoundation.org/wiki/Privacy_Policy), [tile usage policy](https://operations.osmfoundation.org/policies/tiles/) and [copyright and licence information](https://www.openstreetmap.org/copyright). This plugin is not intended for bulk tile downloads or offline prefetching. Required attribution remains visible on the map.

If a visitor clicks a Google Maps link saved by the editor, their browser opens the configured external URL. Google Maps is not embedded or contacted automatically. See the [Google privacy policy](https://policies.google.com/privacy) and [terms](https://policies.google.com/terms).

== Source code and licences ==

The plugin source is included and needs no compilation. Leaflet 1.9.4 is bundled under the BSD 2-Clause licence (LICENSE-LEAFLET.txt). Its unminified source and build instructions are maintained at https://github.com/Leaflet/Leaflet/tree/v1.9.4. The plugin code is GPLv2 or later (LICENSE.txt).

== Frequently Asked Questions ==

= Does the FREE edition work without an account or license? =

Yes. The FREE edition does not require a Plugingo account or license key.

= Can I use it outside Italy? =

The FREE editor focuses on Italy and accepts stops within the bounding box 35–47.2 degrees north, 6–19 degrees east. It does not perform a political-boundary lookup. PRO is a separate plugin with worldwide map settings.

= Which shortcode should I use? =

Use `[plugingo_stop_map id="123"]`, replacing `123` with the ID of the map you want to display.

= Does it include Google Maps? =

The plugin can store a Google Maps URL for each stop and show it in the marker popup. It does not embed the Google Maps service.

== Screenshots ==

1. Visual map editor with markers.
2. Map settings and stop details.
3. Frontend interactive map.

== Changelog ==

= 1.0.2 =
* Unified the WordPress.org candidate and the website release after identifying the older public 1.0.1 version.
* Preserved the existing plugingo-stop-map-free/plugingo-stop-map-free.php plugin entry point for upgrades.
* Included the editor, security, translation and external-service fixes documented below for 0.4.1 and 0.4.2.
* Included Leaflet marker images missing from the old 1.0.1 public ZIP.

= 0.4.2 =
* Corrected output escaping, nonce handling and the WordPress.org text domain.
* Removed unused PRO, geocoding and updater branches from the FREE package.
* Rendered frontend popup text safely and limited link protocols to HTTP/HTTPS.
* Prevented invalid JSON or missing form fields from erasing saved stops.
* Limited public output to published maps and supported multiple instances of a map.
* Added translatable interface strings, proper OpenStreetMap attribution and external-service documentation.

= 0.4.1 =
* Fixed initialization when PRO location-search controls are absent in FREE.
* Prevented popup clicks from creating unintended stops.
* Fixed repeated saves without closing the stop popup.
* Fixed removing remaining stops after another stop has been removed.
* Escaped stop fields in the visual editor and refreshed the editor asset version.

= 0.4.0 =
* Initial WordPress.org-ready FREE release.
* Added visual map editor for stops in Italy.
* Added shortcode rendering with Leaflet and OpenStreetMap attribution.
* Added privacy and external-service documentation.
