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 ?
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 ?
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.
:)
Well, that's what I thought, but I can't get the hotspot to stick in one place.
Any particular reason to not just set your "hotspot" as a plugin?
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 !
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: https://krpano.com/examples/108b8…ons/buttons.jpg
was used for all buttons:
HTML: https://krpano.com/examples/108b8…ns/buttons.html
XML: https://krpano.com/examples/108b8…ons-include.xml
best regards,
Klaus
Um, yeah, that's exactly what I mean
I thought I'd seen something like this before but couldn't recall where or what .... I'll just crawl back under my rock.
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.
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.
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.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!