Thread Starter
101622
(@101622)
Great!
But where do I have to insert that code and what I have to do to make it work, I tried adding the code of your example to test it out and I’m unable to make it work, it just makes another new map in the pages.
Sorry for the questions, I’m just learning 🙂
Thread Starter
101622
(@101622)
Ha! don’t bother just worked out the code, and works fantastic. ;^)
I leave it here if someone needs it to:
`<?php
if(function_exists(‘pronamic_google_maps’)) {
pronamic_google_maps(array(
‘width’ => 500 ,
‘height’ => 500 ,
‘map_options’ => array(
// https://developers.google.com/maps/documentation/javascript/styling
// http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
‘styles’ => array(
(object) array(
‘featureType’ => ‘landscape’,
‘elementType’ => ‘all’,
‘stylers’ => array(
(object) array( ‘hue’ => ‘#ffff00’ ),
(object) array( ‘visibility’ => ‘simplified’ ),
)
),
(object) array(
‘featureType’ => ‘road’,
‘elementType’ => ‘geometry’,
‘stylers’ => array(
(object) array( ‘hue’ => ‘#ff0000’ ),
(object) array( ‘visibility’ => ‘on’ ),
)
),
)
)
));
}
?>`
Hey 101622, I’m trying to solve the same problem. Can you share where you inserted the code and other details that may be helpful for others. Thanks!