AR.radar.background = new AR.ImageResource("assets/radar_bg.png");
AR.radar.northIndicator.image = new AR.ImageResource("assets/radar_north.png");
AR.radar.centerX = 0.5;
AR.radar.centerY = 0.5;
AR.radar.radius = 0.3;
AR.radar.northIndicator.radius = 0.0;
AR.radar.maxDistance = 200;
},
updatePosition: function updatePositionFn() {
if (AR.radar.enabled) {
AR.radar.notifyUpdateRadarPosition();
}
}
};
M
Martin Lechner
said
over 9 years ago
Hi Luca,
The configuration seems to be OK. Do you have a div with the ID "radarContainer" in your DOM that can host the radar?
If yes, can you send us your entire project data (either post it here, or send an email with the subject "Radar is not showing itself" to forum@wikitude.com), so we can check the reason for the issue, thanks!
this.markerObject = new AR.GeoObject(this.markerLocation, {
drawables: {
cam: ,
radar: this.radardrawables
}
});
return this;
}
RADAR.JS as in the first post.
M
Martin Lechner
said
over 9 years ago
Hi Luca,
Please send us a zip file of your project, containing all files and assets you are using, otherwise, we cannot check if the assets are correctly loaded, thanks!
Best,
Martin
L
Luca
said
over 9 years ago
Sorry, it is in attachment
M
Martin Lechner
said
over 9 years ago
Hi Luca,
Are you missing the jquery libraries? They are not included in the project.
Best,
Martin
L
Luca
said
over 9 years ago
Sorry, files are in the project. I did not included because I thought it was useless
M
Martin Lechner
said
over 9 years ago
Hi Luca,
In order to run your project, we need all the files that you are using (even though it is possible that we download them from the internet, we wouldn't know if you are actually using exactly that version of the file, and might not get the issue as you see it).
So, to fully run your project and help you out with your issues, we need all the files you are using, including all assets and anything that is required by your project. Then we can run it through our simulator and check where we see hickups, and can get back to you with a full answer on where your content might run into issues. If we don't have all assets you are using, we will see many more errors that you do due to missing files, includes, dependencies and relationships.
So please add the full project with all the files, libraries, assets etc. to this post, and we'll be glad to help, thanks!
Best,
Martin
L
Luca
said
over 9 years ago
Ok. Only iOS Project is missing now. Sorry for misunderstanding.
M
Martin Lechner
said
over 9 years ago
Hi Luca,
Thanks for the files, I tried your example now, and I can see the radar.
Can you please make sure that you ever actually get a location update (by putting a log or an alert into the locationChanged function), since your radar will only be shown when you get the first location update?
If you get updates, please tell me your exact device model and the SDK version you're using, thanks!
Best,
Martin
L
Luca
said
over 9 years ago
Running the file alert was showed...
iOS SDK 3.3.0
The problem is that also using the ade with Safari, radar doesn't show...
M
Martin Lechner
said
over 9 years ago
Hi Luca,
Ah, I think I understand now - did you ever try to run the code on a mobile device?
It is expected behavior that the radar does not show in the ADE. The ADE is there to debug vaues, not to actually show the real visual result. If you want to get the visual result, you need to try it on a mobile device with your own app, not through Safari. The ADE only helps you with debugging.
Best,
Martin
L
Luca
said
over 9 years ago
Yes Martin, thank you and sorry for the time you lose
W
Wilson Bell
said
almost 7 years ago
I have confirmed that when debugging in the ADE all javascript stops after this line:
Luca