Welcome to Location Map β the coolest WordPress plugin to manage and display locations on an interactive map using Leaflet.js and OpenStreetMap! π
- Custom Post Type: Easily add, edit, and manage your locations with custom fields for longitude, latitude, and a description. π
- Interactive Map Picker: Select your location on a responsive Leaflet map in the admin area! πΊοΈ
- Gutenberg Block: Insert a map block into your posts or pages and show your selected location on the frontend. π·οΈ
- No WordPress API Overhead: Directly inject coordinates into your HTML for a lightweight solution. β‘
- Upload the plugin files to your
/wp-content/plugins/location-mapdirectory or install via the WordPress admin plugin installer. - Activate the plugin through the 'Plugins' menu in WordPress. β
- Head to Location Map in your admin menu to start adding locations and enjoy the mapping fun! π
- Admin Area:
- Go to Location Map > Locations to add new locations.
- Fill in the details (longitude, latitude, description) or pick a location using the interactive map.
- Gutenberg Block:
- Insert the Location Map block in your post or page.
- Select your desired location from the block sidebar.
- Watch the map display on both the editor and the frontend with your selected coordinates! π
- Customize the map appearance by tweaking the Leaflet.js options in the plugin files.
- Replace the placeholder map styles in
admin/admin-style.cssto match your site's design.
Have ideas or improvements? Feel free to fork the repo, open an issue, or submit a pull request! Let's make mapping even more fun together. π
This plugin is licensed under the GPL-2.0+ license.
Enjoy mapping your world! πβ¨