You are not logged in.

Dear visitor, welcome to krpano.com 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.

1

Friday, December 2nd 2011, 12:37am

Image plugin on top of google map

Is it possible to place an image plugin on the google map plugin? To be a bit more specific, can I have the Google Maps plugin be the parent of an image plugin and use edge and align to position the image?

I've tried it and so far all I get is a squished image that isn't positioned quite right, so I can't figure out if I'm doing something wrong or if it just isn't possible. Has anyone tried this before and succeeded?

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

2

Monday, December 5th 2011, 4:13pm

Hi chrispen ^^
Never tried it but i see two things that may help you:
- Have you try using zorder on map and plugin, with map zorder<plugin zorder ?
- Try to find on the forum something about the wmode of your vtour calling script in the HTML, and settle it to "opaque".

If I take two minutes to think about it, I'm pretty sure that you can use this following solution, it may work:

- Create a background for your map and set it to be the map parent.
- Call your map where you want on the background
- Create your plugin and place it with parent settled to bakground...

Like :

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!-- the background for the map -->

<plugin name="background" keep="true" x="0%" y="-0%" url="img/background.png" width="30%" height="prop" align="center"  zorder="0" visible="true" />

<!-- the map itself -->

<plugin name="maps" 
            url="plugins/googlemaps.swf" 
            keep="true"
	    zorder="50"
	    parent="background"
            keep="true"
            align="center"
            x="-1.7%"
            y="-2.2%"
            width="93%"
            height="91%"
  >

<!-- Then the image plugin you want to show over the map -->

<plugin name="mybutton" keep="true" x="50%" y="50%" zorder="100" parent="background" visible="true" url="img/mybutton.png" align="center"  />


Doing this your image plugin will align on the background plugin, but will be over the map ^^
Hope it could help !!

Feed backi please if it works ;-)

Regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

3

Wednesday, December 7th 2011, 6:38pm

That worked perfect, thanks a lot Yomas!

4

Wednesday, December 14th 2011, 5:56pm

Hi,

Quoted

I've tried it and so far all I get is a squished image that isn't positioned quite right,
thanks, yes, there is a bug regrading placing child plugin elements on the googlemaps plugin (and also on the videoplayer plugin),
this will be fixed in the next release,

as workaround it would be possible to add - scalechildren="true" - to the googlemaps plugin (the child elements will not be scaled, but this fixes the bug),

best regards,
Klaus

5

Monday, December 19th 2011, 7:20pm

Thanks for the info Klaus!