How can I calculate that the drawables are in straight line for the user and then increment the altitude(or height of the drawable if there is some funtion for that) of the POI. Sorry for being so noob I am really new to Maps, Latitude and Longitude Algorithms plus the Js.
A
Andreas Fötschl
said
about 8 years ago
Hi there!
There are several ways to handle this issue in the Wikitude SDK.
You may e.g. cluster the places that are in same line/angle (compare http://goo.gl/an1iG, have a look at the imported clustering.js for details, orange/yellow: places that are clustered and replaced by average position = "C"-flat; Pink flags have enough space in the declared angle and are displayed at original location)
You can use this, or more sophisticated other algorithms, to cluster places around user every x meters of location changes.
Hope that helps.
Kind regards, Andi
P
Parvaz Bhaskar
said
about 8 years ago
I wanted to know how can i manage to avoid the stacking of POIs if they in a straight line. Something like the junaio plugin does incrementing the height of POIs that are in straight line so that each poi is visible.
Parvaz Bhaskar