<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>I have an
application that I've developed using OL 2.5 which displays popups associated
with markers, using this sort of approach:</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>var popup = new
OpenLayers.Popup (popupName, popupLonLat, popupSize, popupContent,
false);</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>popup.setBorder
("1px solid");</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2>popup.setBackgroundColor (colorCode[nextColor]); // colorCode is an array
of color strings</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>popup.setOpacity
(1);</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>popup.hide
();</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>// Set mouseover and
mouseout event handlers, etc.</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>I want to upgrade to
2.6 to pick up bug fixes and to take advantage of the autoSize feature of the
new popup boxes.</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>I tried pointing my
application at the OL 2.6 RC1 code to see if it would work without modification,
but it doesn't. My popup boxes are positioned correctly at the upper left, but
their sizes are huge - extending all the way down and right to the edge of my
map. Also, none of them are hidden nor respond to the mouseover/mouseout
events.</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>Either I'm doing
something wrong with the way I've created popups in 2.5 or something has changed
in 2.6.</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>I assumed that there
would be a popup.setAutoSize() method that I could add to the above code
snippet, but there doesn't seem to be one in the current trunk. I also
didn't see an options argument in the initialize() function. But I did see an
example that shows how to create a new popup class and add an autoSize value at
that point, along with using the feature.createPopup() method, neither of which
I'm doing with the 2.5 code - is that the right way to go about doing
it?</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>What exactly is the
proper method for constructing a popup and setting the autoSize param in OL
2.6?</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial size=2>Thanks
...</FONT></SPAN></DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640230222-07042008><FONT face=Arial
size=2>-eP</FONT></SPAN></DIV></BODY></HTML>