Hi, With two examples I think it's enough: "olsocial" and multi layer.
I think "smart-popup.html" is not necessary. Example multi layer using URI instead of Id: * See: http://jorix.github.com/SmartPopup/smart-popup2.html * See templates in: https://github.com/jorix/SmartPopup/tree/gh-pages/templates @Javier Carrasco: Are there any ticket for proposing "olsocial"? Xavier Noli Sicad wrote: > > 1+ to SmartPopup name. > > Then include the 3 examples or more. > > 1. http://gis.prodevelop.es/olsocial/ > 2. http://jorix.github.com/SmartPopup/smart-popup.html > 3. another one with 3 GeoJSON layers with LayerSwitcher - remove and add > > I think it would be good to include more GeoJSON layers aside from > Sprinter GeoJSON, 3 layers with LayerSwitcher. > > Noli > > > > > On 11/1/11, Xavier Mamano (jorix) <xavier.mamano@> wrote: >> Hi Javi, >> >> To me it seemed an interesting proposal. I think the thing can be: >> >> * example (draft): http://jorix.github.com/SmartPopup/smart-popup.html >> * code of the control: http://jorix.github.com/SmartPopup/SmartPopup.js >> >> I think this would be a sufficiently OpenLayers coding, but I'm not >> OpenLayers team member. >> >> I added an automatic behavior, if the layer has the property "templateId" >> is >> not necessary to add it. >> >> TODO: >> * Also allows searching the templates by ajax?. >> * Write tests. >> * Write the method removeLayer. >> * Documenting. >> * Name?: I like the name SmartPopup >> * Constructor options. >> >> Xavier >> >> >> Javier Carrasco wrote: >>> >>> Hello, >>> >>> >>> >>> I wrote a small piece of code to easily add popups to vector layers >>> using html templates. >>> >>> >>> >>> Example: http://gis.prodevelop.es/olsocial/ >>> <http://gis.prodevelop.es/olsocial/> >>> >>> >>> >>> SmartPopup is a manager that helps 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. >>> >>> >>> >>> 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. >>> >>> >>> >>> Could you developers give me some advices to make my code more >>> OpenLayers-style? >>> >>> >>> >>> Thank you >>> >>> Javi >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@.osgeo >>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev >>> >> >> >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/HTML-template-popup-manager-tp6948565p6949634.html >> Sent from the OpenLayers Dev mailing list archive at Nabble.com. >> _______________________________________________ >> Dev mailing list >> Dev@.osgeo >> http://lists.osgeo.org/mailman/listinfo/openlayers-dev >> > _______________________________________________ > Dev mailing list > Dev@.osgeo > http://lists.osgeo.org/mailman/listinfo/openlayers-dev > -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTML-template-popup-manager-tp6948565p6951642.html Sent from the OpenLayers Dev mailing list archive at Nabble.com. _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev