You are not logged in.

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 205

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

1

Sunday, February 15th 2015, 8:08pm

tooltip "always visible" in hotspots for Android mobile devices

Hi, I'm working on interactive map for android mobile, and I need that hotspots always show a tooltip. I tried this but it didn't work in android mobile:
<hotspot name="spot1" style="hotspotmapa" ath="0.304" atv="-0.509" linkedscene="scene_capri01ext" onloaded="showtext('Hotel NH Capri';"/>

Then, how do I put an "always visible" text associated to a hotspot?


Thanks in advanced,


Fernando

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, February 16th 2015, 6:31am

Use the textfield plugin instead, and then it will always be showing.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 205

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

3

Monday, February 16th 2015, 2:49pm

Use the textfield plugin instead, and then it will always be showing.
Hi, thanks, but the idea is to share the same hotspot code, no put other
layer (with other code plus), I want "a trick", a "false tooltip"
inside the hotspot code, maybe a function that it call the textfield.

I´am
searching a very simple method for put text in android mobile map
because I can´t use the normal tooltip: androide tactil don´t have real
event as "on mouse hover", always is as "on mouse clicK". Then how to
view the title of hotspot in map?

Which is the normal solution
for this case? Is it really necesary to duplicate code for each hotspot
for only put a simple title?

Thanks and greets!

Fernando

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Monday, February 16th 2015, 11:25pm

I think solution for your problem is not so easy. There are two different solutions for you:

- simple one is that you use ondown event on the hotspot style that will show some text when user press (and hold) hotspot without releasing the touch from the screen.

- more complex solution is for you to make n:n number of dynamically added textfield plugins as many hotspots of that style you have. E.g. Each hotspot will onloaded create textfield plugin and copy title to this plugins and display text all the time.
regards
Umalo

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 205

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

5

Tuesday, February 17th 2015, 6:13am

Thanks very much Umalo,

I think that the first idea can be a little confused for the average, no expert user (why I can´t navigate as always? How to navigate, How to view the text?...)

The second idea is showing all the textfield as I attempted in the beginning, but now I think that it is not good for the resource system. If the map has 30 o more hotspots, then now has 60 due to textfield (hotspot icons are similar in load to textfields)

Maybe the best is "to paint" the map (multires bitmap map) in photoshop with the text, then only put the correct icon over it. Is sounds very hard, but no much in the paractice.

The other idea is think in new event for the mobile, as gesture over the icon for show th text, but it is very complex for now I think.

Greets,

Fernando

6

Tuesday, February 17th 2015, 8:55am

Hi,

see here for always showing a text on a hotspot:
tooltips hotspots to display text all time

The example (hotspot style) there automatically creates and assigns a textfields to a hotspot.

Best regards,
Klaus

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 205

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

7

Wednesday, February 18th 2015, 3:48am

Thanks Klaus,

The code is perfect for hotspots mobile. I add the new style inside <krpano devices=mobile> to maintain the standard hotspot style for desktop devices.

It does not look like for the fact of having always the hotspot visible to affect the performance of the system.


Greets,

Fernando

D_V

Beginner

Posts: 5

Location: Portugal

Occupation: 3D Artist & Designer

  • Send private message

8

Tuesday, March 10th 2015, 9:09pm

Hotspots tooltips problems on Mobile

Hi,

I'm having a problem with the hotspots tooltips on mobile. The problem is that the text doesn't appear on all hotspots. Just on some of them. Can you help me out?
In Desktop browser they're just fine.

Here is a link where you can see this happening:








http://visual-labs.com/penthouse/tour.html

Thanks,
DV

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

9

Tuesday, March 10th 2015, 9:20pm

Have you tried to update your Krpano version and textfiled to latest version? Maybe there is the catch?

D_V

Beginner

Posts: 5

Location: Portugal

Occupation: 3D Artist & Designer

  • Send private message

10

Wednesday, March 11th 2015, 5:09pm

Yes Umalo, that was the main problem but also i add to clean up some code...

Thanks