Experimentation - Gmaps Colors
How do I make an experimentation - gmaps colors?
What is a experimentation - gmaps colors? How do you make a experimentation - gmaps colors? This script and codes were developed by Kévin Joffard on 11 October 2022, Tuesday.
Experimentation - Gmaps Colors - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Experimentation - Gmaps Colors</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html lang="en"><head>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
window.onload = function () { var styles = [ { featureType: 'water', elementType: 'all', stylers: [ { hue: '#00BCE2' }, { saturation: 100 }, { lightness: -42 }, { visibility: 'on' } ] },{ featureType: 'road', elementType: 'all', stylers: [ { hue: '#FFC72C' }, { saturation: 100 }, { lightness: -8 }, { visibility: 'on' } ] },{ featureType: 'administrative', elementType: 'labels', stylers: [ { hue: '#EFF0F2' }, { saturation: 10 }, { lightness: 88 }, { visibility: 'on' } ] },{ featureType: 'landscape', elementType: 'all', stylers: [ { hue: '#071D49' }, { saturation: 76 }, { lightness: -82 }, { visibility: 'on' } ] },{ featureType: 'poi', elementType: 'geometry', stylers: [ { hue: '#60C659' }, { saturation: 10 }, { lightness: -28 }, { visibility: 'simplified' } ] },{ featureType: 'poi', elementType: 'geometry', stylers: [ { hue: '#60C659' }, { saturation: 10 }, { lightness: -28 }, { visibility: 'simplified' } ] },{ featureType: 'poi', elementType: 'all', stylers: [ { hue: '#60C659' }, { saturation: 10 }, { lightness: -28 }, { visibility: 'on' } ] } ];
var options = { mapTypeControlOptions: { mapTypeIds: ['Styled'] }, center: new google.maps.LatLng(-7.245217594087794, 112.74455556869509), zoom: 16, disableDefaultUI: true, mapTypeId: 'Styled'
};
var div = document.getElementById('surabaya');
var map = new google.maps.Map(div, options);
var styledMapType = new google.maps.StyledMapType(styles, { name: 'Styled' });
map.mapTypes.set('Styled', styledMapType);
}
</script>
<!-- nav script -->
<script src="../nav/js/nav.js" type="text/javascript"></script>
</head>
<body>
<!-- nav meta -->
<div class="demo-meta"> <h1 class="demo-title">Google Maps with Custom Styles</h1> <p class="demo-desc">Styling Google Maps</p>
</div>
<!-- demo content -->
<div class="demo-wrapper"> <div id="surabaya"></div>
</div>
</body>
</html> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Experimentation - Gmaps Colors - Script Codes CSS Codes
html, body { height: 100%; margin: 0; padding: 0;
}
Experimentation - Gmaps Colors - Script Codes JS Codes
window.onload = function () { var styles = [ { featureType: 'water', // set the water color elementType: 'geometry.fill', // apply the color only to the fill stylers: [ { color: '#adc9b8' } ] },{ featureType: 'landscape.natural', // set the natural landscape elementType: 'all', stylers: [ { hue: '#809f80' }, { lightness: -35 } ] } ,{ featureType: 'poi', // set the point of interest elementType: 'geometry', stylers: [ { hue: '#f9e0b7' }, { lightness: 30 } ] },{ featureType: 'road', // set the road elementType: 'geometry', stylers: [ { hue: '#d5c18c' }, { lightness: 14 } ] },{ featureType: 'road.local', // set the local road elementType: 'all', stylers: [ { hue: '#ffd7a6' }, { saturation: 100 }, { lightness: -12 } ] }
];
var options = { mapTypeControlOptions: { mapTypeIds: ['Styled'] }, center: new google.maps.LatLng(-7.245217594087794, 112.74455556869509), zoom: 16, disableDefaultUI: true, mapTypeId: 'Styled'
};
var div = document.getElementById('surabaya');
var map = new google.maps.Map(div, options);
var styledMapType = new google.maps.StyledMapType(styles, { name: 'Styled' });
map.mapTypes.set('Styled', styledMapType);
}
Developer | Kévin Joffard |
Username | kejoff |
Uploaded | October 11, 2022 |
Rating | 3 |
Size | 2,757 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Footer Grid | 2,023 Kb |
Landing Page 3 columns oblique | 3,251 Kb |
Animation iFrame Google maps - Vanilla Javascript | 2,322 Kb |
Vertical Accordeon Menu | 2,226 Kb |
Aframe - Hello Metaverse Testing | 2,235 Kb |
Product Page | 6,544 Kb |
Footer new generation | 3,069 Kb |
Grid 2 columns test | 1,710 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
JQuery FullScreen Overlay | _codemics | 2,252 Kb |
Weird glowy CSS3 game | Toneworm | 3,684 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Portfolio page | Bhavya_j | 2,804 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
ASCII triangle image overlay | Mitchdot | 2,200 Kb |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
Formations | Cantelope | 5,731 Kb |
Colorful Sliders | Chanrith | 1,246 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!