Sorry, I found the mistake... In the code example SimepleArBrowser.java there are TEST_LATITUDE, TEST_LONGITUD... I think locationChanged took GPS coordenates. Now I try to take my GPS coordenates correctly.
F
Fabian Orrego
said
almost 11 years ago
Thx, I cheked locationChanged and the coordenates are wrong. My location is in Colombia (lat:2.9499 lon:-75.2995 ) but locationChanged get wrong coordenates (lat: 47.773200 lon: 13.069700). It coordenates are always the same. How do I fix it?
regards.
C
Christian Ebner
said
almost 11 years ago
Did you check if you really receive a location? If you don't receive a location then the function locationChanged(lat, lon, alt, acc) will never be executed. You can check it by adding an alert for example: alert('locationChanged - lat: ' + lat + " lon: " + lon);
or by displaying it in a div: document.getElementById("statusElement").innerHTML = 'locationChanged - lat: ' + lat + " lon: " + lon;
If you don't need GeoLocations you can also have a look at RelativeLocations.
Cheers,
Chris
F
Fabian Orrego
said
almost 11 years ago
thx for help me, My code is:
...
var sunImg = new AR.ImageResource("Sun-icon.png");
var sunSize = 5;
// Create an orange circle with a radius of 5
var myCircle = new AR.ImageDrawable(sunImg, sunSize);
....
I think the problem isn't image because I used AR.circle too and happened the same.
C
Christian Ebner
said
almost 11 years ago
Hi, if the code you posted is the one you are using then you forgot to put the ImageDrawable source into quotation marks: Sun-icon.png
If you add the ade.js to your html then it's much easier to find syntax-errors. Just add those lines within your head-tag (more): <script type="text/javascript" src="ade.js"></script>
Then open your html with chrome for example, right-click on your browser-window and select "inspect element". In your console-tab you can check if you have any errors.
Hope this helps, Chris
F
Fabian Orrego
said
almost 11 years ago
Hi...
I'm testing Architect´s examples... I'm trying to change random geolocation for an real location near to me. I searched the coordenates (latitude and longitude) in Google Earth. So, when I put the real coordenates in an code example, I can't see any geoObject in my App... It is my code:
<script>
function enterFOV() {
document.getElementById("statusElement").innerHTML = "I can see you!";
}
//Called if the GeoObject exits the field of vision
Fabian Orrego