谷歌地图圈需要

时间:2015-07-13 20:37:49

标签: javascript google-maps dictionary geometry

我在谷歌地图上的光标周围添加圆圈时遇到问题。请帮助。我的地图运作良好。只需要在它周围添加一个圆圈。谢谢你。我使用这个gmap版本。 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 At
			var mapCenterAt = function(options, e) {
				e.preventDefault();
				$("#googlemaps").gMap("centerAt", options);
			}

		</script>

1 个答案:

答案 0 :(得分:0)

使用此:

library(data.table)
library(lubridate)

tdt <- data.table(
  Timestamp = seq(as.POSIXct("1980-01-01 00:00:00")
  , as.POSIXct("2015-01-01 00:00:00")
  , '1 hour'))
tdt[, Timestamp := Timestamp + dminutes(10)]