GMaps Multiple Markers

Developer
Size
1,885 Kb
Views
12,144

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 Previews

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)); }
GMaps Multiple Markers - Script Codes
GMaps Multiple Markers - Script Codes
Home Page Home
Developer Bryan Rojas
Username bryanrojas
Uploaded January 01, 2023
Rating 3
Size 1,885 Kb
Views 12,144
Do you need developer help for GMaps Multiple Markers?

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!

Bryan Rojas (bryanrojas) Script Codes
Create amazing Facebook ads with AI!

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!