<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi, thanks for getting back to me so
      quickly!<br>
      <br>
      On 19/09/2012 13:40, Bart van den Eijnden wrote:<br>
    </div>
    <blockquote
      cite="mid:A3A43C5D-2157-4CD1-AFC1-4AD7606687AF@opengeo.org"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      How about using the beforefeatureadded event of
      OpenLayers.Layer.Vector?</blockquote>
    The problem is this is fired when I load data from my HTTP protocol
    as well as through DrawFeature.  My workaround-in-progress is to
    check if the desired properties are already set or not, but there
    should be a nicer way I'm sure!<br>
    <br>
    Mark<br>
    <br>
    <blockquote
      cite="mid:A3A43C5D-2157-4CD1-AFC1-4AD7606687AF@opengeo.org"
      type="cite">
      <div>Best regards,</div>
      <div>Bart</div>
      <div><br>
        <div>
          <span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; font-size: medium; ">
            <div>-- <br>
              Bart van den Eijnden<br>
              OpenGeo - <a moz-do-not-send="true"
                href="http://opengeo.org/">http://opengeo.org</a><br>
              Expert service straight from the developers.</div>
            <div><br>
            </div>
          </span><br class="Apple-interchange-newline">
        </div>
        <br>
        <div>
          <div>On Sep 19, 2012, at 2:37 PM, Mark Paxton <<a
              moz-do-not-send="true" href="mailto:mark@innaxys.com">mark@innaxys.com</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">Hello,<br>
            <br>
            Please may I ask some advice on the following:<br>
            <br>
            I would like to set properties on a feature when inserted
            from a<br>
            DrawFeature control. At the moment I use the 'featureAdded'
            event on<br>
            Control.DrawFeature, however the 'beforeFeatureAdded' event
            should be<br>
            what I need as I am setting properties for the style, etc.
             How can I<br>
            achieve this without havingt o create a new layer?<br>
            <br>
            Thanks<br>
            Mark<br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
            <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>