shortcode with array (map options)
-
I would like to display a map with some specific styling :
`function custom_pronamic_google_maps_the_content( $content ) {
$content .= pronamic_google_maps( array(
‘width’ => 955,
‘height’ => 400,
‘map_options’ => array(
‘styles’ => array(
(object) array(
‘stylers’ => array(
(object) array( ‘saturation’ => ‘-100’ ),
)
),
)
)
) );return $content;
}`I can find a way to write it as a shortcode, is it possible ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘shortcode with array (map options)’ is closed to new replies.