Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
suvan1911 authored Mar 5, 2024
1 parent f56ad37 commit 8809372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function distance(x1,y1,x2,y2){
}

function defineLocations(){ // ?locations=location1,location2
console.log(window.location.search);
let mapItems={"Salal":[214,117],"Bhakra Nangal":[246,158],"Tehri":[292,206],"Rana Pratap Sagar":[223,338],"Sardar Sarovar":[164,438],"Hirakud":[417,444],"Nagarjuna Sagar":[302,576],"Tungabhadra":[235,588],"Namrup":[701,263],"Singrauli":[382,364],"Ramagundam":[313,506],"Narora":[296,256],"Kakrapara":[161,441],"Tarapur":[156,485],"Kalpakkam":[328,667],"Noida":[272,241],"Gandhinagar":[134,380],"Mumbai":[160,501],"Pune":[175,510],"Hyderabad":[291,550],"Bengaluru":[261,671],"Chennai":[333,663],"Thiruvananthapuram":[248,779],"Kandla":[80,389],"Marmagao":[180,603],"New Mangalore":[206,668],"Kochi":[238,750],"Tuticorin":[274,776],"Vishakhapatnam":[413,534],"Paradip":[490,463],"Haldia":[520,421],"Amritsar(Raja Sansi - Sri Gurum Dass jee)":[218,153],"Delhi(Indira Gandhi)":[259,242],"Mumbai(Chhatrapati Shivaji)":[159,495],"Chennai(Meenam Bakkam)":[329,666],"Kolkata(Netaji Subhash Chandra Bose)":[529,401],"Hyderabad(Rajiv Gandhi)":[295,549]};
for (let [place,cord] of Object.entries(mapItems)){
mapItems[place]=[cord[0]-40,cord[1]-5]
Expand Down

0 comments on commit 8809372

Please sign in to comment.