Hi to everyone!
I’m going to participate in the Nasa Space Apps Challenge this weekend and I want to solve this challenge.
I want to download a KML (XML) file from internet with information about fires available here and show it on a map together with the user position.
Then, I need a system to allow the current user to post msg on the map and share it in real time with all the other users. The Question is, Can I do it with WebStorage?
I was thinking in something like this:
WebStorage{
property string xmlFile: "<userData>" + xmlData + "</userData>"
property string xmlData: ""
function addPoint(latitude,longitude,note){
xmlData += "<point>"
xmlData += "<latitude>";
xmlData += latitude;
xmlData += "</latitude>";
xmlData += "<longitude>";
xmlData += longitude;
xmlData += "</longitude>";
xmlData += "<note>";
xmlData += "note;
xmlData += "</note>";
xmlData += "</point>"
}
}
Then, the idea is to use a xmlListModel to draw the points using a repeater.
There is any limit in the size of a variable?
Do you have any other idea about how to do it?
Thank you!