javascript - Google map circle needed -


i facing problem add circle around cursor @ google map. please help.my map working well.just need add circle around it.thanks in advanced. use gmap version. https://github.com/marioestrada/jquery-gmap

<script>  var mapmarkers = [{  				address: " acworth, ga 30102, united states",  				html: "<strong> acworth, ga 30102</strong><br> acworth, ga 30102, united states",  				icon: {  					image: "img/pin.png",  					iconsize: [26, 46],  					iconanchor: [12, 46]  				},  				popup: true  			}];                                             			// map initial location  			var initlatitude = 34.114268;  			var initlongitude = -84.6315723;    			// map extended settings  			var mapsettings = {  				controls: {  					draggable: (($.browser.mobile) ? false : true),  					pancontrol: true,  					zoomcontrol: true,  					maptypecontrol: true,  					scalecontrol: true,  					streetviewcontrol: true,  					overviewmapcontrol: true  				},  				scrollwheel: false,  				markers: mapmarkers,  				latitude: initlatitude,  				longitude: initlongitude,  				zoom: 10                                      			};                                                                                                                                                                                                                      var map = $("#googlemaps").gmap(mapsettings);    			// map center @  			var mapcenterat = function(options, e) {  				e.preventdefault();  				$("#googlemaps").gmap("centerat", options);  			}    		</script>

use this:

  var circle = new google.maps.circle({     center: geolocation,     radius: position.coords.accuracy   }); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -