=== Sleekode Interactive Maps ===
Contributors: ms13th
Tags: leaflet, openstreetmap, maps, geolocation, shortcode
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create interactive maps with markers, categories, clustering, CSV import, JSON backup, and current location support.

== Description ==

Sleekode Interactive Maps is a powerful WordPress plugin powered by Leaflet and OpenStreetMap.

Create location directories, tourist guides, store maps, event maps and community maps directly from the WordPress admin area.

Display responsive interactive maps anywhere using a simple shortcode.

Perfect for:

* Tourist guides
* Facility maps
* Office locations
* Event maps
* Community maps
* Store maps
* Campus maps

Key Features:

* Powered by OpenStreetMap (no Google Maps API required)
* Current location detection
* Category-based marker filtering
* Marker clustering for large datasets
* Responsive popup cards
* Drag-and-drop marker editing
* Multiple map layers
* Flexible shortcode options
* WordPress native content management
* JSON export and import
* CSV import support
* CSV template download
* Bulk delete utility
* Category color management
* Translation ready

Live Demo:

https://www.image-box.co.jp/digital-map.html

== Features ==

= Interactive Maps =

Display interactive maps powered by Leaflet.js and OpenStreetMap. Fast, lightweight and fully responsive.

= Marker Management =

Manage locations using a dedicated custom post type. Easily create, edit and organize markers directly from the WordPress dashboard.

= Drag & Drop Position Editor =

Adjust marker positions visually using the built-in map editor. Latitude and longitude values are automatically synchronized.

= Category Filters =

Organize markers using WordPress taxonomies and allow visitors to filter locations dynamically on the map.

= Current Location Detection =

Allow users to jump directly to their current location with a single click.

= Marker Clustering =

Automatically group nearby markers to improve performance and usability when displaying large numbers of locations.

= Rich Popups =

Display featured images, descriptions, categories and external links inside responsive popup cards.

= Multiple Map Layers =

Switch between:

* OpenStreetMap
* GSI Maps (Japan)
* Satellite imagery

= Import & Export =

Export all markers and categories as JSON.
Import JSON backups with duplicate detection.
Import CSV files for bulk marker registration.
Download a CSV template from the settings page.

Images stored in the WordPress Media Library are not included in import/export files and must be migrated separately.

= Flexible Shortcodes =

Control map behavior directly from shortcode parameters.

Examples:

[sleekode_map]

[sleekode_map category="station"]

[sleekode_map height="600"]

[sleekode_map cluster="false"]

[sleekode_map zoom="10"]

[sleekode_map lat="35.681236" lng="139.767125"]

[sleekode_map tiles="satellite"]

[sleekode_map tiles="gsi"]

== Installation ==

1. Upload the plugin to the /wp-content/plugins/ directory, or install it directly from the WordPress Plugins screen.

2. Activate the plugin through the WordPress Plugins screen.

3. Add the shortcode below to any page or post:

   [sleekode_map]

4. Create markers from the "Sleekode Markers" menu.

5. Create categories and assign colors.

== Frequently Asked Questions ==

= Does Sleekode require a Google Maps API key? =

No. Sleekode uses OpenStreetMap and Leaflet, so no Google Maps API key is required.

= Can I display hundreds of markers? =

Yes. Marker clustering is included to improve performance when displaying large numbers of locations.

= Can I filter markers by category? =

Yes. Category filters are generated automatically using WordPress taxonomies.

= Is mobile supported? =

Yes. The frontend map and popup interface are fully responsive.

= Can I use multiple maps on my site? =

Yes. Maps can be configured independently using shortcode attributes.

= Does Sleekode store location data externally? =

No. All marker data is stored within your WordPress site.

= Does Sleekode work without JavaScript? =

No. Sleekode requires JavaScript to render interactive maps.

= Can I import markers from CSV? =

Yes. Sleekode supports CSV import and includes a downloadable template.

= Are images included in CSV import? =

No. CSV imports marker information only. Images must be assigned manually after import.

= Can I backup my map data? =

Yes. You can export all markers and categories as a JSON file and restore them later.

= Can I migrate my maps to another site? =

Yes. Export your markers and categories as JSON and import them into another site. Media Library images should be migrated separately.

= Is my location data sent to a third party? =

No. The plugin stores marker data in your WordPress database. Maps use OpenStreetMap tiles, but your marker data is never transmitted to external services.

== Screenshots ==

1. Interactive frontend map
2. Responsive popup cards
3. Category filtering interface
4. Marker management screen
5. Drag-and-drop map editor
6. Current location feature
7. Marker clustering
8. Multiple map layer switching

== Changelog ==

= 1.0.0 =
* Interactive OpenStreetMap maps
* Marker management
* Category filtering
* Marker clustering
* Current location detection
* Drag-and-drop marker editor
* Multiple map layers
* Rich popup cards
* JSON export
* JSON import
* CSV import
* CSV template download
* Bulk delete tool
* Translation ready

== Upgrade Notice ==

= 1.0.0 =

Initial release.

== License ==

This plugin is licensed under the GPLv2 or later.

== Third-Party Libraries ==

This plugin includes:

Leaflet
Copyright (c) Vladimir Agafonkin
License: BSD-2-Clause
https://leafletjs.com/

Leaflet.markercluster
Copyright (c) Leaflet contributors
License: MIT
https://github.com/Leaflet/Leaflet.markercluster