Subversion Repositories SmartDukaan

Rev

Rev 27370 | Rev 27372 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27370 Rev 27371
Line 33... Line 33...
33
	    center: { lat: 28.644800
33
	    center: { lat: 28.644800
34
, lng: 78.9629 },
34
, lng: 78.9629 },
35
	    zoom: 8,
35
	    zoom: 8,
36
	  });
36
	  });
37
	  const coordinates = [];
37
	  const coordinates = [];
-
 
38
	  const lineSymbol = {
-
 
39
	    path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
-
 
40
	  };
38
	#foreach($location in $locations)
41
	#foreach($location in $locations)
39
	coordinates.push({lat: $location.getLat(), lng: $location.getLng()});
42
	coordinates.push({lat: $location.getLat(), lng: $location.getLng()});
40
	#end
43
	#end
41
	  const flightPath = new google.maps.Polyline({
44
	  const flightPath = new google.maps.Polyline({
42
	    path: coordinates,
45
	    path: coordinates,
-
 
46
	    icons: [{
-
 
47
	        icon: lineSymbol,
-
 
48
	        offset: "50%"
-
 
49
		}],
43
	    geodesic: true,
50
	    geodesic: true,
44
	    strokeColor: "#FF0000",
51
	    strokeColor: "#FF0000",
45
	    strokeOpacity: 1.0,
52
	    strokeOpacity: 1.0,
46
	    strokeWeight: 2
53
	    strokeWeight: 2
47
	  });
54
	  });