WP Manifestindependent plugin directory
manifest / utilities / goliath-polymap

Goliath Polymap

Draw nice polygon on a google map

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/studio-goliath/goliath-polymap/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Draw nice polygon on a google map

Required

Google Map API key

You need to have a Google map API key

And you need to add it to your wp-config.php this way :

define( 'GOOGLE_MAP_API', 'AIzaSy*******************NZfs' );

Filters

gpm/post-type

To add the metabox on your custom post type you can use the filter gpm/post-type. Keep in mind you need to return an array.

// Example to add polymap metabox to a custom post type named "operation"
add_filter( 'gpm/post-type', function(){
    return array( 'operation' );
});