Google Maps API Random Colors

Reload the page to get a new color and lines's thickness


	
var mapcol = '#'+Math.floor(Math.random()*16777215).toString(16); var numrand = ((Math.random()*5)+1); var styleArray = [ { "stylers": [ { "hue": mapcol+20}, { "lightness": 1 }, { "saturation": numrand}, { "weight": numrand } ] },{ "featureType": "administrative.province", "elementType": "geometry.stroke", "stylers": [ { "color": mapcol+50 }, { "weight": numrand} ] },{ "elementType": "labels.text.fill", "stylers": [ { "color": mapcol+30 } ] }, { "featureType": "water", "elementType": "geometry.fill", "stylers": [ { "color": mapcol} ] }, { "featureType": "water", "elementType": "stroke", "stylers": [ { "color": mapcol} ] }, { "elementType": "labels.text.stroke", "stylers": [ { "color": "#000000" }, { "weight": 0.1 } ] } ]
Created by