Custom GoogleMaps
How do I make an custom googlemaps?
Adding color and marker. What is a custom googlemaps? How do you make a custom googlemaps? This script and codes were developed by Jimmy Van Der Sleen on 15 January 2023, Sunday.
Custom GoogleMaps - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Custom GoogleMaps</title> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="map-canvas"></div> <script src="js/index.js"></script>
</body>
</html>
Custom GoogleMaps - Script Codes CSS Codes
html, body, #map-canvas { height: 100%; margin: 0px; padding: 0px;
}
Custom GoogleMaps - Script Codes JS Codes
var map;
var brooklyn = new google.maps.LatLng(52.221537,6.893662);
var MY_MAPTYPE_ID = 'custom_style';
function initialize() { var featureOpts = [ { stylers: [ { hue: '#999' }, { visibility: 'simplified' }, { gamma: 0.8 }, { weight: 0.1 } ] }, { elementType: 'labels', stylers: [ { visibility: 'on' } ] }, { featureType: 'water', stylers: [ { color: '#339966' } ] } ]; var mapOptions = { zoom: 12, center: brooklyn, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, MY_MAPTYPE_ID] }, mapTypeId: MY_MAPTYPE_ID }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var styledMapOptions = { name: 'Custom Style' }; var image = "http://www.logicrecruitment.nl/wp-content/uploads/icon-user-green.png"; var beachMarker = new google.maps.Marker({ position: brooklyn, map: map, icon: image }); var customMapType = new google.maps.StyledMapType(featureOpts, styledMapOptions); map.mapTypes.set(MY_MAPTYPE_ID, customMapType);
}
google.maps.event.addDomListener(window, 'load', initialize);
Developer | Jimmy Van Der Sleen |
Username | sjimster |
Uploaded | January 15, 2023 |
Rating | 3 |
Size | 2,357 Kb |
Views | 6,072 |
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 |
One-page Navigation scroll plug-in | 3,677 Kb |
Website Header SVG Animation | 3,991 Kb |
SoundCloud API user | 4,556 Kb |
Scroll Animations CSS3 and SCSS | 2,962 Kb |
Toggle Hamburger Menu | 2,892 Kb |
Glow menu | 2,460 Kb |
PreLoad page | 2,365 Kb |
Svg loading circle | 2,271 Kb |
Flexbox vertical slide menu | 2,995 Kb |
List 3d scroll | 3,552 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 |
Hover Animation from UNIQLO | Insprd | 3,772 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
Pure CSS read more toggle | Idered | 2,344 Kb |
Getting Started | Viblast | 1,500 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Slim Grid SASS SCSS v3.2 | Thesturs | 4,709 Kb |
Count up | Alanshortis | 2,391 Kb |
Off Canvas | Mariamarica | 1,870 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
Flat buttons for Eliassen.com | Kdooley89 | 1,737 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!