You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Thursday, December 12th 2013, 8:54am

Distance plugin

Hi all.

One of my clients wanted to performance the interactive map with marked points (hotspots). Nothing simpler, right. FLASH technology.

My client came up with the idea, unfortunately, to install a script that will calculate and display information about the distances between hotspots.

My request is:
Does anyone of you - the creators of virtual tours based on krpano - is able to do such a thing?
Plugin would work as[url] # top[/url] but on a local image map.

If it could be done send me a price and the execution time.

I'll be grateful for your response

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message


Thursday, December 12th 2013, 2:05pm

Hi!You no need any plugins.
it's simple calculations (rectangular) for flat map.
All you need to know is scale. (how many pixels in one meter)
calculation dx*dx + dy*dy = distance * distance
distance = Math.sqrt( distance * distance );
Note: it's just conception, not real krpano code ;)

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread