As noted, it's not the radar plugin... it's the spot(s) plugin (in Briar's specific case)... and as Shanti said... could happen with any plugin / hotspot / widget that has an onhover=showtext...
I don't know if it's a "bug" or a "design challenge"
Here's what's happening step-by-step
1- mouse moves over spot#
2- triggers onhover and text box shows up at the cursor (this continues over and over)
3- click on spot#
4- onclick action starts loading a new scene
5- new scene onstart event fires up and new showtext action loads with "infostyle" to place the showtext top center
6- mouse is still on top of spot though and it's onhover has been "looping"
7- showtext reverts control back to the spot# and the little text box near the spot shows
The only problem is that the sequence of events between 3 and 7 happens pretty darn quick... unless you have a slow connection and there is sometimes a noticeable pause... in which the new scenes onstart--> showtext works for a second or two.
I was able to click the spot# and move off the spot quick enough so that the scene title stayed up as intended... but that's not something normal users are going to do.
I couldn't call it a bug... as everything is working as its supposed to... maybe more of a feature limitation?
So - now that we've had that review... what to do about it?
NOTE - the below are theoretical solutions, none tested and some probably not possible or desirable.
A. Turn off the spots onhover in the load action...
|
Quellcode
|
1
|
set(plugin[spot#].onhover,null);
|
... but then you'd have to turn it back on at some point in time... which might get messy.
B. Load a blank png file over the map / spots / radar in the load action. This should block the mouse onhover from getting to the spot. You'll have to remove the blank png after the new scene loads to restore functionality to the map and spots.
C. Don't use onhover for the spot... but try onOVER for your showtext...
|
Quellcode
|
1
2
3
|
<plugin name="spot1" url="mappoint.png" zorder="10"
origin="righttop" parent="map" edge="center" keep="true" x="140" y="110" ONOVER="showtext(Main Cabin, MAPSTYLE);"
onclick="action(load1);" />
|
... then similar to your "infostyle" you could set a "showtime" and "fadetime" for "mapstyle". The onover is only called once... when you move over the icon... not in intervals like onHover. So... even if the mapstyle showtext is still visible when the spot is clicked, the new scene's showtext should(?) override it and work as expected. Downside would be if the user moved off the spot and back on while things were loading then the onOVER would kick in again and trump the title from showing.. or at least cut it short. But, it might not... and you could always try using a freezeview or wait function to block input.
OK - I'm out of ideas... but kinda like the last one. Hope it works.
Graydon