Forum Moderators: open

Message Too Old, No Replies

Style inside Google as separate variable

         

toplisek

10:13 am on Jun 30, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have set var called mystyles1 following:
var mystyles1 =[
{
featureType: 'water',
elementType: 'geometry',
stylers:[
{color: '#890000'},
{"lightness": 10}
]
},
];

and all code:
(function(jQuery)
{

jQuery(document).ready(function()
{
var mystyles1 =[
{
featureType: 'water',
elementType: 'geometry',
stylers:[
{color: '#890000'},
{"lightness": 10}
]
},
];

var map, mapId = 'myGoogleID1';
map = new google.maps.Map(document.getElementById(mystyles1,'myGoogleID1'), mapOptions);
var element = document.getElementById('MyGoogleNumber1');
element.parentNode.removeChild(element);

}
);

}
)(jQuery);

Why is styling (mystyles1) not working as code is validated without an error?

Need help.

incrediBILL

5:22 am on Aug 5, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Did you resolve this yet?

toplisek

9:04 am on Aug 26, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



not yet.