[OpenLayers-Dev] Re: HTML template popup manager
Xavier Mamano (jorix)
xavier.mamano at gmail.com
Mon Oct 31 16:22:39 EDT 2011
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 at .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.
More information about the Dev
mailing list