You are not logged in.

1

Tuesday, June 16th 2009, 8:57am

How do I make a 'fixed position' hotspot ?

Is it possible to have hotspots in a fixed position ? That is, I don't want them to rotate locked to the image, but always stay (for example) in the bottom left corner.

Is this possible ? Is there some way to define the co-ordinates as fixed ?

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

2

Tuesday, June 16th 2009, 11:21am

yes its possible

look at the fade logo example on the examples folder that came with krpano

edit: oh, wait that's for a plugin, but you can make the plugin behave like a hotspot also.

:)

3

Tuesday, June 16th 2009, 12:04pm

Well, that's what I thought, but I can't get the hotspot to stick in one place.

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

4

Wednesday, June 17th 2009, 6:05am

Any particular reason to not just set your "hotspot" as a plugin?

5

Wednesday, June 17th 2009, 11:18am

Well, here's what I want to do...

Instead of having lots of little graphics for each panorama link on a map; or each control (up, down, zoom etc), I just want to have one single jpeg. That jpeg has a pretty little control panel. The 'fixed' hotspots are positioned on top of the jpeg with the various functions.

Whenever I get a new client I then customize the controls to suit, but so long as they keep the same basic 'hit area' I can make that single jpeg look like anything. I don't have to save 12 graphics or fiddle with several hundred lines of code. The basic code never changes. Likewise with custom maps. I import a map with lovely little trigger areas, but in reality I just make the hotspots the triggers. Then when I want the map and trigger spots to appear/disappear, it's one bit of code instead of a huge chunk of repetitive tedium.

There. You asked for it ! *g*

6

Wednesday, June 17th 2009, 5:20pm

Hi,

do you mean polygonal hotspots on screen base?

but having only one image for all buttons is already possible,
like here - this one image:

URL: http://krpano.com/examples/108b8/example…ons/buttons.jpg

was used for all buttons:
HTML: http://krpano.com/examples/108b8/example…ns/buttons.html
XML: http://krpano.com/examples/108b8/example…ons-include.xml

best regards,
Klaus

7

Thursday, June 18th 2009, 2:52am

Um, yeah, that's exactly what I mean *love*

I thought I'd seen something like this before but couldn't recall where or what .... I'll just crawl back under my rock.

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

8

Thursday, June 18th 2009, 6:06am

Richard,

I get what you mean.

Using your Wetlands Tour as a sample (http://multimediaaction.com/wetlands/wetlands.html)... You'd like to setup a your "controls" (bottom left of the sample) as a single jpg (or png)... like this...



(or something similar).

Then, place "hotspots" on top of the control image.

Is that right so far?

If so, then you CAN do this with plugins.

If your control "buttons" in the image are more or less square, then you could use a transparent 1x1px *.png as the plugin that sits over the control image button and receives the onclick event (or onhover, or on... whatever).

If you need a transparent png... I'll try to add one later... I'm getting server issues everytime I try to do something now. *blink*

OK - it's working again...

Here's the 1x1 transparent png...

hmmmm... it really is there... I figured it would act like the other attachment above and make it "visible" in some format. *tongue*
I've emailed it to you as well.

When you add it as a plugin, just position it as needed with x and y and set the width / height as needed to cover the area you want.

If you don't set the transparent overlay as a child to the control menu image... then you'll want to make sure to set the zorder's correct...

control_menu - zorder=1
overlay - zorder=2

Hopefully this will help.... feel free to come out from under the rock and ask for additional clarification. *smile*