How invoke highslide from a vector

3 messages Options
Embed this post
Permalink
student123

How invoke highslide from a vector

Reply Threaded More More options
Print post
Permalink
(This post was updated on )
Guys, I really need your help.
I'm trying to invoke iframe from a vector. And I can't :(
In fact, what I'm trying to do is to invoke iframe using highslide : I have a static image, there is a polygon vector, and when I click on it I want to invoke an iframe containing another map. I want to invoke this iframe like shown here highslide.com/#examples.
Can you tell me, is it possible? If yes, what should I do?

Thanks a lot
ralthaus

Re: How invoke highslide from a vector

Reply Threaded More More options
Print post
Permalink

student123 wrote:
Guy, I really need your help.
I'm trying to invoke iframe from a vector. And I can't :(
In fact, what I'm trying to do is to invoke iframe using highslide : I have a static image, there is a polygon vector, and when I click on it I want to invoke an iframe containing another map. I want to invoke this iframe like shown here highslide.com/#examples.
Can you tell me, is it possible? If yes, what should I do?

Thanks a lot
Don't know if I understood well, but i would say that you need :
a  FeatureSelect control (OpenLayers.ControlFeatureSelect) related to your Vector Layer (your polygon is on a Vector Layer, right ?)

Then you can put your "creating iframe" function (like highslide one) in the onSelect property of your FeatureSelect control , for example...

student123

Re: How invoke highslide from a vector

Reply Threaded More More options
Print post
Permalink
Thank you for your reply. I'm sorry I couldn't write earlier.

This method should work but in my case the iFrame function is invoked directly from hyperlink.
Example will explain better:

I invoke highslide like this :

a href="include/iFrameInclude.htm" on_click="return hs.htmlExpand(this, { objectType: 'iframe' } )">
                                        Highslide with iframe popup example
/a>

So this function hs.htmlExpand() works with the html object

and my onSelect property looks like that :

onSelect: onFeatureSelect,

where onFeatureSelect is :

function onFeatureSelect(vector) {
               
                               
                                selectedFeature = vector;
                                popup = new OpenLayers.Popup.FramedCloud("plan_labos",
                                     vector.geometry.getBounds().getCenterLonLat(),
                                     null,
                                     'some text',
                                     null, true, onPopupClose);

                                vector.popup = popup;
                                map.addPopup(popup);
                        }


and I don't really see any way to invoke this highslide (which is cool)
from the vector since vector isn't html object.
Am I right?
Actually, I really want to be wrong cause I want to make this thing work
Thanks for any help or any ideas on how to invoke iFrame by clicking on vector