<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    like some others told, drawing is a standard control of OL and
    described in some examples. Additional information to a layer is
    also no problem. Since your interface needs some metadata for
    loading the layer, like name, URL or Format, you can also preload
    "description".  For name there is already an attribute in an OL
    layer (see
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Layer-js.html">http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Layer-js.html</a>)<br>
    for other non standard attributes you can create your own:<br>
    var layer =
    OpenLayers.Layer.WMS("myname",myurl,{"layers":mylayers,"format":"image/png"},{"description":"This
    is a description"});<br>
    You can use the new value like:<br>
    alert(layer.description);<br>
    Since JavaScript is an prototype language you can add anything to
    nearly every object(as I know, there are some restrictions for
    security).<br>
    If you don't want to extend your layer objects you can write some
    ajax calls and use name, url or an other unique attribute set to
    request additional data. <br>
    I would prefer the first solution for often used data, the second
    for rarly used data or very large data. <br>
    For the first solution you should consider to use an own "namespace"
    for custom attributes then the description should be accessible
    with:<br>
    layer.myuniquenamespace.description<br>
    and a moredata attribute:<br>
     layer.myuniquenamespace.moredata.<br>
    Both ways will need an custom Control to show your attributes,
    except for name and attribution the LayerSwitcher control uses it,
    and when you want the user to change the attribute you need a custom
    saving function. <br>
    Regards<br>
    Slawomir<br>
    <br>
    <br>
    Am 29.05.2012 10:45, schrieb Gary Duckers:
    <blockquote cite="mid:SNT129-DS13B92C2540C79C842EE498F7050@phx.gbl"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
      <div class="WordSection1">
        <p class="MsoNormal">I am new to web based mapping and I am
          looking at developing a map that allows users to draw features
          (line, polygon and point). However I wish user to be able to
          add information in a text format to each vector such as ‘name’
          and ‘description’ and then be able to download each vector
          type in kml format or shp. Is this currently possible with
          OpenLayers. Any advice would be greatly appreciated.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Gary<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>