Heurisko Maps Plugin for WordPress
The Heurisko Maps plugin allows you to easily display Google Maps on your WordPress site using latitude and longitude from dynamic custom fields. With the flexibility of using shortcodes, you can place a Google Map virtually anywhere on your website.
Description
This plugin uses the Google Maps API to generate maps based on the latitude and longitude data provided via dynamic custom fields of a WordPress post. Users can choose to display a marker, a street view panorama, or an informational window.
The plugin features a simple settings page where users can configure the Google Maps API Key, the custom field names for latitude and longitude, the post type, and custom CSS for the maps.
Features
- Easy integration of Google Maps into your WordPress posts or pages.
- Uses latitude and longitude data from custom fields.
- Support for different types of views: marker (https://developers.google.com/maps/documentation/javascript/markers), street view panorama (https://developers.google.com/maps/documentation/javascript/streetview), info window (https://developers.google.com/maps/documentation/javascript/infowindows).
- Custom CSS support for map styling.
Installation
- Upload the `heurisko-maps` folder to the `/wp-content/plugins/` directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Visit the settings page to configure the plugin (Settings > Heurisko Maps).
- Enter your Google Maps API Key (https://developers.google.com/maps/documentation/embed/get-api-key) and specify the custom field names for latitude and longitude (if you’ve not created custom fields yet you can plugins like Pods or ACF to simply do so).
- Place the `[heurisko-map]` shortcode in your posts, pages, custom post types, or templates/reusable-blocks where you want to display a map.
- `[heurisko-map]` will display a marker map. To display others:
- [heurisko-map view=”info_window”] – This will display the map with an information window.
- [heurisko-map view=”street_view”] – This will display the map with a street view.
Usage
In a post or page, use the `[heurisko-map]` shortcode to insert a Google Map. The latitude and longitude data will be automatically fetched from the custom fields of the post.
License
GPLv2 or later. See [license.txt](license.txt) for more details.