[OpenLayers-Dev] Re: HTML template popup manager

Noli Sicad nsicad at gmail.com
Mon Oct 31 18:37:58 EDT 2011


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 at gmail.com> 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/
>> &lt;http://gis.prodevelop.es/olsocial/&gt;
>>
>>
>>
>> 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.
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>


More information about the Dev mailing list