but it makes me wonder why the world scale is so small? according to the sample project, if i change it to 48 the POI is just gone from the screen. only when i change it to values from 47.772 to 47.774 it works. how can i change the scale and make it bigger?
The values are representing longitude and latitude from the geographic coordinate system - so they represent the actual value of the geo position. See this Wikipedia article for more information: http://en.wikipedia.org/wiki/Decimal_degrees
D
Default
said
almost 11 years ago
Thanks for your answer I finally made it works.
but it makes me wonder why the world scale is so small? according to the sample project, if i change it to 48 the POI is just gone from the screen. only when i change it to values from 47.772 to 47.774 it works. how can i change the scale and make it bigger?
W
Wolfgang Damm
said
almost 11 years ago
Of course you can. After creating the POI (GeoObject) you can change the properties of its GeoLocation.
Here is a quick example how to do this: // create the POI var loc = new AR.GeoLocation(47, 12); var drawable = new AR.Circle(1); var poi = new AR.GeoObject(loc, {drawables: {cam: drawable}});
// change its location afterwards loc.latitude = 48; // or animate it var anim = new AR.PropertyAnimation(loc, "latitude", null, 48, 2000); anim.start();
Default