By Roman K on Wednesday, 10 February 2016
Posted in Technical Issues
Replies 1
Likes 0
Views 436
Votes 0
Hello there,
My question is how can I change style of map module in EasyBlog?
I'm trying to use the following instruction (https://developers.google.com/maps/documentation/javascript/styling#styling_the_default_map) but without any success.

For example.

I'm trying to insert stylers here:

$(".mod-easyblogpostmap").implement("EasyBlog.Controller.Location.Map", {
backgroundColor: "red", // цвет фона
language: "<?php echo $language; ?>",
zoom: <?php echo $zoom; ?>,
fitBounds: <?php echo $fitBounds; ?>,
useStaticMap: false,
disableMapsUI: <?php echo $mapUi; ?>,

styles: [
{
stylers:[
{hue:"#00ffe6"},
{saturation:-100},
{gamma:0.4}
]
}
,
locations: <?php echo json_encode($locations); ?>

});

});

Could you please inform is it correct way?

BR
Thanks
Unfortunately you can't make changes this way and based on the requirements of Google Maps, you actually need to create a new styled map. You need to modify the file in /media/com_easyblog/scripts/location.js

Do take note that because your site is running the compressed version, any modification on this file will not take effect unless you switch your system environment to development mode.
·
Wednesday, 10 February 2016 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post