Subversion Repositories SmartDukaan

Rev

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

Rev 27366 Rev 27369
Line 32... Line 32...
32
	  map = new google.maps.Map(document.getElementById("map"), {
32
	  map = new google.maps.Map(document.getElementById("map"), {
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
	  ]
-
 
39
	#foreach($location in $locations)
38
	#foreach($location in $locations)
40
	coordinates.push({$location.getLat(), $location.getLng()});
39
	coordinates.push({lat: $location.getLat(), lng: $location.getLng()});
41
	#end
40
	#end
42
	  const flightPath = new google.maps.Polyline({
41
	  const flightPath = new google.maps.Polyline({
43
	    path: coordinates,
42
	    path: coordinates,
44
	    geodesic: true,
43
	    geodesic: true,
45
	    strokeColor: "#FF0000",
44
	    strokeColor: "#FF0000",