This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html b:css='false' b:js='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateVersion='1.0.0' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<meta charset='utf-8'/> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0'> | |
<meta name="description" content="XXXXX"> | |
<meta name="author" content="XXXXX"> | |
<title><data:view.title.escaped/></title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.2"> | |
<Document> | |
<name>Simple balloon tabs example</name> | |
<Folder> | |
<name>Folder</name> | |
<visibility>1</visibility> | |
<Placemark> | |
<name>Balloon tabs example</name> | |
<description> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const drawSector = ({ lat, lng, r, azimuth, width, map }) => { | |
const centerPoint = new google.maps.LatLng(lat, lng); | |
const PRlat = (r / 3963) * (180 / Math.PI); // using 3963 miles as earth's radius | |
const PRlng = PRlat / Math.cos(lat * (Math.PI / 180)); | |
let theta = 0; | |
let gamma = (Math.PI / 180) * (azimuth + width / 2); | |
let PGpoints = []; | |
for (let a = 0; theta < gamma; a++) { |