=== LMDM Styles for Open User Map ===
Contributors: nicmare
Tags: Gutenberg, Blocks, Map, Open User Map, Marker
Requires at least: 6.9
Tested up to: 6.9
Stable tag: 1.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Extends the Open User Map block with per-block map style and marker icon settings.

== Description ==

The Open User Map plugin provides global settings for map style and marker icons. This plugin adds more control directly inside the Gutenberg block sidebar, so you can overwrite these global defaults for a single `open-user-map/map` block.

This is useful when one page needs a different tile style, another map should use a custom marker icon, or individual markers on the same map should use different icons.

=== Attention ===

You need to install and activate [Open User Map](https://wordpress.org/plugins/open-user-map/) first. Without it, this plugin has no map block to extend.

=== Plugin Features ===

✔  extends the existing `open-user-map/map` block and does not create a new block
✔  adds a map style dropdown to overwrite the global Open User Map style per block
✔  adds a marker icon dropdown to overwrite the global marker icon per block
✔  supports the default Open User Map marker icons
✔  supports custom PNG marker images from the WordPress media library
✔  adds an option to configure marker icons individually when multiple markers are shown
✔  adds reset buttons to jump back to the global Open User Map defaults
✔  keeps the frontend lightweight and uses the existing Open User Map rendering logic

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/lmdm-styles-for-open-user-map` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Make sure **Open User Map** is installed and activated.
4. Open a page or post in Gutenberg and insert the **Open User Map** block.
5. Use the new **Overwrite Global Map Settings** panel in the block sidebar.

== Frequently Asked Questions ==

= Does it create a new block? =

No, it just extends the existing `open-user-map/map` block.

= Does it change the global Open User Map settings? =

No. The plugin only stores block-level overrides. Your global Open User Map settings stay untouched.

= Can I use a custom marker image? =

Yes. Choose `custom image...` in the icon dropdown and then select a PNG image from the media library.

= Why only PNG for custom marker images? =

PNG files support transparent backgrounds and are the most reliable choice for marker icons in this use case.

= Can I set different icons for individual markers? =

Yes, when the map contains multiple markers you can choose `change individually...` and assign icons marker by marker.

= Does it load any additional assets in the frontend? =

No additional frontend libraries are loaded. The plugin mainly extends the block editor UI and hooks into existing Open User Map data.

= What happens when i disable the plugin? =

You can disable and delete the plugin without harmful effects. The Open User Map block will keep working with the global Open User Map settings.

= Who is the author of the plugin? =

The Wordpress-User "nicmare" vibe coded it. Means he had the idea of the plugin and uses AI to craft the code.

== Screenshots ==

1. Map style and Marker override in the block sidebar
2. Marker icon override works like a repeater field
3. Custom build in marker icons
4. Custom PNG marker image selector from the media library

== Changelog ==

= 1.0 =
* first release of the plugin
