@foreach (var QuestionAnswers in Model)
{
var markers = [{
coords: { lat: @QuestionAnswers.latitude, lng: @QuestionAnswers.longitude},
},];
}
How can I add value within foreach loop?
var markers = [{
coords: { lat: @QuestionAnswers.latitude, lng: @QuestionAnswers.longitude},
},];
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 8, 2019, 11:11 PM EST
Shoaib Ahmed150 reputationPosted Jan 8, 2019, 11:25 PM EST