Qibla Mosque Straightening Using Google Map: It is endless when we discuss about the Google map. Well, in this article, we will make a straight line from two different locations. The method is called with a polyline. To make the line on the Google map, we still use the basic coding to display the Google map on our personal website. Once you open the page, now make a folder on your personal web page by following the steps in the article. Once the folder is successfully created, then we proceed to the next step.
Next step, type the code below which serves to show the line polyline.
var polyline = new GPolyline([ new GLatLng(-7.919536103992129, 112.59542226791382), new GLatLng(-7.930529082052441, 112.61073231697083) ], "#ff0000", 10); map.addOverlay(polyline);
Put the code above under the code below.

