GMaps Multiple Markers
How do I make an gmaps multiple markers?
GMaps Multiple Markers. What is a gmaps multiple markers? How do you make a gmaps multiple markers? This script and codes were developed by Bryan Rojas on 01 January 2023, Sunday.
GMaps Multiple Markers - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>GMaps Multiple Markers</title> <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body> <div id="map" style="width: 500px; height: 400px;"></div> <script src='https://maps.google.com/maps/api/js?sensor=false'></script> <script src="js/index.js"></script>
</body>
</html>
GMaps Multiple Markers - Script Codes JS Codes
var locations = [ ['Bondi Beach', -33.890542, 151.274856, 4], ['Coogee Beach', -33.923036, 151.259052, 5], ['Cronulla Beach', -34.028249, 151.157507, 3], ['Manly Beach', -33.80010128657071, 151.28747820854187, 2], ['Maroubra Beach', -33.950198, 151.259302, 1] ]; var map = new google.maps.Map(document.getElementById('map'), { zoom: 10, center: new google.maps.LatLng(-33.92, 151.25), mapTypeId: google.maps.MapTypeId.ROADMAP }); var infowindow = new google.maps.InfoWindow(); var marker, i; for (i = 0; i < locations.length; i++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map }); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent(locations[i][0]); infowindow.open(map, marker); } })(marker, i)); }
Developer | Bryan Rojas |
Username | bryanrojas |
Uploaded | January 01, 2023 |
Rating | 3 |
Size | 1,885 Kb |
Views | 12,144 |
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 |
Liquor Home Page | 6,383 Kb |
Sandy Blog | 21,642 Kb |
Slick Carousel Theme | 3,349 Kb |
Highcharts - Stacked bar chart | 1,769 Kb |
A Pen by Bryan Rojas | 1,873 Kb |
Storystrap | 3,797 Kb |
WaitForImages Plugin Demo | 2,874 Kb |
Bootstrap Caption Hover | 2,638 Kb |
Vidible API Call | 3,027 Kb |
Loading Overlay | 6,377 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 |
Video mute | Leon9208 | 2,131 Kb |
Sass Radar | Jlong | 6,887 Kb |
IbrahimJabbari-Effect14 | Ibrahimjabbari | 1,919 Kb |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Using Flickr API | MoyArt | 6,761 Kb |
Ball physics | Blackkbot | 3,874 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 Kb |
A Pen by Shidhin | Shidhincr | 5,015 Kb |
Table border-collapse property | Maxds | 1,672 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!