Subversion Repositories SmartDukaan

Rev

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

Rev 27371 Rev 27372
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 icons = [];
38
	  const lineSymbol = {
39
	  const lineSymbol = {
39
	    path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
40
	    path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
40
	  };
41
	  };
41
	#foreach($location in $locations)
42
	#foreach($location in $locations)
42
	coordinates.push({lat: $location.getLat(), lng: $location.getLng()});
43
	coordinates.push({lat: $location.getLat(), lng: $location.getLng()});
-
 
44
	icons.push({icon: lineSymbol, offset: "50%"}
43
	#end
45
	#end
44
	  const flightPath = new google.maps.Polyline({
46
	  const flightPath = new google.maps.Polyline({
45
	    path: coordinates,
47
	    path: coordinates,
46
	    icons: [{
48
	    icons: icons,
47
	        icon: lineSymbol,
-
 
48
	        offset: "50%"
-
 
49
		}],
-
 
50
	    geodesic: true,
49
	    geodesic: true,
51
	    strokeColor: "#FF0000",
50
	    strokeColor: "#FF0000",
52
	    strokeOpacity: 1.0,
51
	    strokeOpacity: 1.0,
53
	    strokeWeight: 2
52
	    strokeWeight: 2
54
	  });
53
	  });