WP Interactive Maps
The WordPress Interactive Map Plugin
by Your Name · github.com/schroeder/wp-interactive-maps · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/schroeder/wp-interactive-maps/archive/refs/heads/main.zipWordPress Interactive Map Plugin
Overview
The WordPress Interactive Map Plugin is a custom WordPress plugin that enables administrators to create interactive maps with clickable locations (points and areas). The plugin follows WordPress best practices and integrates seamlessly with the WordPress admin interface, custom post types, REST API, and Gutenberg block editor.
Installation
- Copy the plugin folder to
wp-content/plugins/wp-interactive-maps/ - Navigate to WordPress Admin → Plugins
- Activate "WP Interactive Maps"
- Verify that activation completes without errors
Usage
Create a Map with Image
- Navigate to WordPress Admin → Interactive Maps → Add New
- Enter a map title (e.g., "Campus Map")
- Add a description in the editor
- Click "Select Map Image" in the Map Details meta box
- Upload or select an existing image (recommended: at least 800x600px)
- Verify that:
- Image preview appears
- Image dimensions are displayed
- "Remove Image" button appears
- Click "Publish"
- Verify the map is saved successfully
Create Place-Type Locations
- Navigate to WordPress Admin → Interactive Maps → Locations → Add New
- Enter a location title (e.g., "Main Building")
- Add description content in the editor
- In Location Details meta box:
- Select the map created in Test 1
- Select "Place (Point)" as location type
- Enter X coordinate (e.g., 250)
- Enter Y coordinate (e.g., 150)
- Select a marker color using the color picker
- Click "Add Images" and select 1-2 images
- Click "Publish"
- Repeat for 2-3 different locations with different coordinates
Create Area-Type Locations
- Navigate to WordPress Admin → Interactive Maps → Locations → Add New
- Enter a location title (e.g., "Parking Area")
- Add description content
- In Location Details meta box:
- Select the map from Test 1
- Select "Area (Polygon)" as location type
- Enter polygon points in JSON format:
[[200,150],[250,150],[250,200],[200,200]] - Select a polygon color
- Add images if desired
- Click "Publish"
- Create 1-2 more area locations
Embed Map Using Shortcode
- Create a new Page or Post
- Add the shortcode with your map ID:
[interactive_map id="123" layout="side"](Replace 123 with your actual map ID)
- Publish the page
- View the page on the frontend
- Verify that:
- Map image displays correctly
- Place markers appear at correct positions
- Area polygons render correctly
- Colors match the settings
Embed Map Using Gutenberg Block
- Create a new Page using the Block Editor
- Add a new block and search for "Interactive Map"
- Select the block
- In block settings:
- Select your map from the dropdown
- Choose layout (side or popup)
- Preview or publish the page
- View on frontend
Reporting Issues
If you encounter any issues during testing:
- Note the exact steps to reproduce
- Check browser console for errors
- Verify WordPress and PHP versions
- Check for plugin conflicts
- Review server error logs
- Document expected vs actual behavior