<html><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--

@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,</p><p class=MsoNormal>&nbsp;</p><p class=MsoNormal><span>I wrote a small piece of code to easily add popups to vector layers using html templates.</span></p><p class=MsoNormal><span>&nbsp;</span></p><p class=MsoNormal><span>Example: </span><a href="http://gis.prodevelop.es/olsocial/"><span>http://gis.prodevelop.es/olsocial/</span></a><span> </span></p><p class=MsoNormal><span>&nbsp;</span></p><p class=MsoNormal><span>SmartPopup is a manager that helps &nbsp;users to add popups to vector layers without dealing with controls or events and without concatenating strings. The name (SmartPopup) is wrong, TemplatePopupManager would be better. </span></p><p class=MsoNormal><span>&nbsp;</span></p><p class=MsoNormal><span>I think it could be useful for other users but maybe it is not very OpenLayers-style. Maybe it should be a control instead of a separate object, width and height of the popup and the popup style (like FramedCloud) should be configurable, etc. </span></p><p class=MsoNormal><span>&nbsp;</span></p><p class=MsoNormal><span>Could you developers give me some advices to make my code more OpenLayers-style?</span></p><p class=MsoNormal><span>&nbsp;</span></p><p class=MsoNormal><span>Thank you</span></p><p class=MsoNormal><span>Javi</span></p></div></body></html>