<div class="gmail_quote">On Wed, Aug 18, 2010 at 4:12 PM, Anne Blankert <span dir="ltr">&lt;<a href="mailto:anne.blankert@geodan.nl">anne.blankert@geodan.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"> On 7/29/2010 11:30 PM, Volker Mische wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Best thing is to read the archive, there are so many ways :)<br>
<br>
IIRC, my last preferred approach was to have distinction between the map and layers (and perhaps even features). So that you e.g. can bind events to the map, layers and features.<br>
<br>
As I always say, we are still in flux, please write code if you&#39;ve the time to and do it the way you like. It&#39;s much better to comment on existing things, rather than discussion vaporware to death.<br>
<br>
Cheers,<br>
  Volker<br>
</blockquote>
<br></div>
Where and how shall we start working on plubicly viewable/updatable code in a very flexible manner? The source tree in geojquery still seems to be empty? For a start, there could be a general setup for a JQuery plugin:<br>

<br>
<br>
(function ($) {<br>
<br>
$.fn.pluginname = function (param1, param2, useroptions)<br>
{<br>
        // set default option values and extend with useroptions<br>
        options = $.extend( {<br>
                option1: &quot;defaultvalue1&quot;,<br>
                option2: &quot;defaultvalue2&quot;,<br>
                option3: &quot;defaultvalue3&quot;<br>
                }, useroptions || {});<br>
}<br>
<br>
})(jQuery);<br>
<br>
<br>
Some decisions already have to be made:<br>
- The name for the plugin, is this the only plugin or will there be many?<br>
- There is a proposition athttp://<a href="http://gitorious.org/geojquery/pages/PluginOverview" target="_blank">gitorious.org/geojquery/pages/PluginOverview</a>  where there is a distinction between UI and Core. The Core plugin is a JQuery api-wrapper around OpenLayers or - as I understand it - some other mapping module to be used. The UI plugin provides the actual interactive mapping widgets (in my understanding such widgets could be the map itself, a legend, a scale bar, a layer selector, a layer manager, a coordinate display, a feature info displayer, an overview map, map drawing tools with element type selector, color selector, line type selector, layer creator etc.)<br>

<br>
If I understand correctly, the next coding step could be setting up a very simple OpenLayers based map, wrapped in two jquery plugin skeletons (core + ui) such as the one above?<br>
<br>
Do you think that this is the way to proceed or should we wait for someone or some group to come up with much bigger code chunks?<br>
<br>
Greetz,<br>
<br>
Anne<br>
<br>
<br>
_______________________________________________<br>
Geojquery mailing list<br>
<a href="mailto:Geojquery@lists.osgeo.org" target="_blank">Geojquery@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geojquery" target="_blank">http://lists.osgeo.org/mailman/listinfo/geojquery</a><br>
</blockquote></div><br>I could provide a little more, based on a hacked jQuery UI widget factory (for single namespace $.geojquery with subnamespaces like $.geojquery.core and &quot;:layer&quot;-style selector function calls) with a core.map-widget based on it. Want me to throw it in?<br>