Google maps circle method
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 - 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&sensor=false&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, }); } }); */
});
Developer | Massimo Cassandro |
Username | massimo-cassandro |
Uploaded | November 09, 2022 |
Rating | 3 |
Size | 2,285 Kb |
Views | 14,168 |
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 |
SVG dinamyc chart | 5,628 Kb |
JQuery UI Autocomplete for Bootstrap | 4,368 Kb |
CSS sprites example | 1,940 Kb |
Colspan auto | 1,368 Kb |
PDF Flyer generator | 16,758 Kb |
SVG example | 2,119 Kb |
Nested table email layout | 2,355 Kb |
SVG embedding methods | 2,734 Kb |
JQuery UI Datepicker | 2,506 Kb |
SVG symbols demo | 3,246 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 |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
Expert Help | SinceSidSlid | 4,064 Kb |
CSS3 Form | Tusharbandal | 1,836 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
Bootstrap Responsive Menu Drawer | JesseGlacken | 3,777 Kb |
React Markdown Previewer | C0d0er | 3,190 Kb |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Day 11 - Calendar Card | Arnellebalane | 6,984 Kb |
Blockquote design | Sjmcpherson | 1,863 Kb |
CSS Parent Selector | Tomhodgins | 2,143 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!