Need data to be represented in given format below
In-order to display data over a World map which is an add-on/ plug-in
system is accepting the data in :
local!test:a!map(
1:{
latitude: "18.1096",
longitude: "-77.2975",
tooltip: { content: "Jamaica" }
},
2:{
latitude: "35.9078",
longitude: "127.7669",
tooltip: { content: "Korea (South)" }
}
),
But while using forEach loop we are getting data from system in below expression and format
a!forEach(
items: local!getMatchedIntells,
expression: a!localVariables(
local!id: fv!index,
local!name: "",
local!lat: "",
local!long: "",
local!finalDt: a!map(
latitude: local!lat,
longitude: local!long,
tooltip: { content: local!name }
),
local!finalDt
)
[{'1': {latitude: 23.424076, longitude: 53.847818, tooltip: {content: "United Arab Emirates"}}}, {'2': {latitude: 33.93911, longitude: 67.709953, tooltip: {content: "Afghanistan"}}}, {'3': {latitude: 41.153332, longitude: 20.168331, tooltip: {content: "Albania"}}}]
can we make the resulting one as the expected one
even i had tried with merge and update options aswell
