Hi,
Is there any way i can get control over the positioning of a CloudPopup in the client?
The current algorithm seems to place many of our popups on top of each other.
Are other, more sophisticated algorithms available?
tnx,
paul
Hi,
Is there any way i can get control over the positioning of a CloudPopup in the client?
The current algorithm seems to place many of our popups on top of each other.
Are other, more sophisticated algorithms available?
tnx,
paul
Paul,
I’m not quite sure the meaning by the position of the CloudPopup on the client. Do you mean the x/y of the popup or the z-index of the popup? If it’s z-index, what algorithms do you want more? You know it’s client side stuff which is very flexible to have a workaround.
Thanks and looking forward your feedback,
Howard
Howard,
We’d like control over the X/Y position and if possible the Z order of each CloudPopup as it is displayed.
We also set their visibility on/off on the client side using OpenLayers show/hide of the popup so we need the placement control at each event where the CloudPopup is re-displayed.
At the least we need to specify the X/Y of the upper left of the CloudPopup and have it draw at that position. We also still want the tail to draw correctly from the popup to the marker which is the POI we are describing in the popup.
So a call to our code (or someone else’s if they have already solved the problem) that would allow us to specify the popup position would be nice.
Is this strictly an OpenLayers thing? Should I look there?
tnx,
paul
Paul,
The Z-index algorithm of CloudPopup in WebEdition is “Later added, Topper shows”, but it can be reset using OpenLayers API like below:
var popup = GetPopupById(“PopupId”);
popup.div.style.zIndex = 99999;
popup.draw();
The popup can be located by X/Y using code like below:
popup.lonlat = new OpenLayers.LonLat(xInWorldCoordinate, yInWorldCoordinate);
popup.updatePosition();
Please refer to dev.openlayers.org/docs/file...up-js.html for details about OpenLayers Popup.
Any question please let me know, thanks,
Johnny