Google Map Field Join KC discussion

The google_map allows you to select your location visually and quickly.

KingComposer Google-Map text

Map Usage:

array(
	'name' => 'field_id',
	'label' => 'Field Label',

	'type' => 'google_map',  // USAGE GOOGLE_MAP TYPE

	'description' => 'Field Description',
)

Example:

Register a new shortcode with filed type: google_map

add_map(
	    
        array(
           
            // 1st shortcode element
            'my_shortcode' => array(
                'name' => 'My Shortcode',
                'description' => 'This is my shortcode',
                'icon' => 'my-class-icon',
                'category' => 'Content',
                'params' => array(
                    //1st field
                    array(
                        'name' => 'map',
                        'label' => 'Select Location',
                        'type' => 'google_map',
                        'admin_label' => true,
                    ),
                    //2nd field
                )
            ),

            // 2nd shortcode element

        ) // End Arrays
    );

} // end my_wp_init()
       
?>

Read more