Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
114
rated 0 times [  119] [ 5]  / answers: 1 / hits: 26785  / 11 Years ago, thu, september 5, 2013, 12:00:00

I am developing a website with bing map. I've almost done it, but i want to have the pin clustering functionalitty. Then i got this code from the internet:



var data = [
{ latitude: 59.441193, longitude: 24.729494 },
{ latitude: 59.432365, longitude: 24.742992 },
{ latitude: 59.431602, longitude: 24.757563 },
{ latitude: 59.437843, longitude: 24.765759 },
{ latitude: 59.439644, longitude: 24.779041 },
{ latitude: 59.434776, longitude: 24.756681 }
];


I can get the latitude and longitude of every pushpin on my map, but i don't know how to add the latitude and longitude on this array. Can anyone help me?


More From » arrays

 Answers
22
data.push({latitude: lat, longitude: lng});

[#75888] Tuesday, September 3, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaelynncherokeeg

Total Points: 697
Total Questions: 109
Total Answers: 104

Location: France
Member since Thu, Mar 18, 2021
3 Years ago
jaelynncherokeeg questions
Thu, May 27, 21, 00:00, 3 Years ago
Fri, Jan 24, 20, 00:00, 4 Years ago
Thu, Nov 14, 19, 00:00, 5 Years ago
Wed, Sep 18, 19, 00:00, 5 Years ago
;