Google maps circle method

Size
2,285 Kb
Views
14,168

How do I make an google maps circle method?

What is a google maps circle method? How do you make a google maps circle method? This script and codes were developed by Massimo Cassandro on 09 November 2022, Wednesday.

Google maps circle method Previews

Google maps circle method - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Google maps circle method</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&amp;sensor=false&amp;language=it"></script>
<div class="map" id="map1"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Google maps circle method - Script Codes CSS Codes

.map { border:1px solid #ccc; background-color: #efefef; height: 500px; }

Google maps circle method - Script Codes JS Codes

$(document).ready(function() { var map, geocoder; geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'address': 'Iceland'}, function(results, status) {	if (status == google.maps.GeocoderStatus.OK) {	var mapOptions = {	zoom:6,	mapTypeControl: true,	mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU	},	zoomControl: true,	zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL	},	center: results[0].geometry.location	}	map = new google.maps.Map($('#map1')[0], mapOptions);	var area_demo=new google.maps.Circle({ map: map, center: map.getCenter(), clickable:false, radius: 150000, fillColor:'#c00', fillOpacity:0.5	});	} else {	alert("Can't draw map:\n" + status);	}	}); /* // aggiunta di marker random	$('#add_markers').click(function () {	var bounds = map.getBounds();	var southWest = bounds.getSouthWest();	var northEast = bounds.getNorthEast();	var lngSpan = northEast.lng() - southWest.lng();	var latSpan = northEast.lat() - southWest.lat();	for (var i = 0; i < 300; i++) {	var point = new google.maps.LatLng(southWest.lat() + latSpan * Math.random(),	southWest.lng() + lngSpan * Math.random());	var marker = new google.maps.Marker({ map: map, position: point, });	}	}); */
});
Google maps circle method - Script Codes
Google maps circle method - Script Codes
Home Page Home
Developer Massimo Cassandro
Username massimo-cassandro
Uploaded November 09, 2022
Rating 3
Size 2,285 Kb
Views 14,168
Do you need developer help for Google maps circle method?

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!

Massimo Cassandro (massimo-cassandro) Script Codes
Create amazing blog posts 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!