Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Wikitude SDK (Android, iOS, UWP)
Wikitude SDK Questions or Problems
JSON Arrary Question?
B
Bruce Yang
started a topic
over 9 years ago
JSON Arrary Question?
1 Comment
B
Bruce Yang
said
over 9 years ago
if i change json context format i want to achieve in mobile device show details description.des
example:
JSON_DATA.
, "id" : "1", "latitude" : "24.9528802429251", "longitude" : "121.509316013427", "name" : "taipei101" },{ "_id" : ObjectId("528ae48e31bac2f78431d0af"), "altitude" : "110", "description" : , "id" : "1", "latitude" : "24.9528802429251", "longitude" : "121.509316013427", "name" : "HTC" }>
I do not know how to modify this section
Code:
for (var currentPlaceNr = 0; currentPlaceNr < poiData.length; currentPlaceNr++) {
var singlePoi = {
"_id": poiData._id,
"id": poiData.id,
"latitude": parseFloat(poiData.latitude),
"longitude": parseFloat(poiData.longitude),
"altitude": parseFloat(poiData.altitude),
"title": poiData.name,
*this one==>"description": poiData.description
};
final i wish singlePoi data can be use to "onMarkerSelected" function
onMarkerSelected: function onMarkerSelectedFn(marker) {
World.currentMarker = marker;
// update panel values
$("#poi-detail-title").html(marker.poiData.title);
//$("#poi-detail-description").html(marker.poiData.description);
*this one==>$("#poi-detail-description").html(marker.poiData.description);
......
......
}
Login
or
Signup
to post a comment
More topics in
Wikitude SDK Questions or Problems
Instatiation of WTArchitectView compile errors
Point of interest - native iOS
Slider
Camera lagging / slow in native Swift application
Create a web service
N-th ImageDrawable not displayed
Radar Example
stop defaultlocationmanager and use architectview.injectlocation ios 10
WTC Size Limit
AngularJS and wikitude
See all 3870 topics
© 2021 Wikitude, a Qualcomm company
Bruce Yang