<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">Hey Mark,<br>
      <br>
        I got something.  Instead of setting the vector layer features
      property directly, use the addFeatures() method to add new
      features :<br>
      <br>
          //vectors.features = geojson.read(serialized);<br>
          vectors.addFeatures(geojson.read(serialized));<br>
      <br>
        If you want to remove all current features first, call :<br>
          vectors.removeAllFeatures();<br>
      <br>
      HTH,<br>
      <br>
      Alexandre<br>
      <br>
      <br>
      On 12-08-03 11:38 AM, Alexandre Dubé wrote:<br>
    </div>
    <blockquote cite="mid:501BF060.8000608@mapgears.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hi Mark,<br>
        <br>
          Don't forget to include the list in CC so that others can see
        the progression of your issue.<br>
        <br>
        Regards,<br>
        <br>
        Alexandre<br>
        <br>
        On 12-08-03 11:25 AM, Mark Turek wrote:<br>
      </div>
      <blockquote
        cite="mid:1344007513.74113.YahooMailNeo@web114013.mail.gq1.yahoo.com"
        type="cite">
        <div style="color:#000; background-color:#fff; font-family:times
          new roman, new york, times, serif;font-size:12pt">
          <div><span>Hi Alexandre!</span></div>
          <div><span><br>
            </span></div>
          <div><span>Thank you for you answer. Attached you will find a
              little example program.</span></div>
          <div><span><br>
            </span></div>
          <div><span>Mark</span></div>
          <div><br>
          </div>
          <div style="font-family: 'times new roman', 'new york', times,
            serif; font-size: 12pt; ">
            <div style="font-family: 'times new roman', 'new york',
              times, serif; font-size: 12pt; ">
              <div dir="ltr"> <font face="Arial" size="2">
                  <hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
                  Alexandre Dubé <a moz-do-not-send="true"
                    class="moz-txt-link-rfc2396E"
                    href="mailto:adube@mapgears.com"><adube@mapgears.com></a><br>
                  <b><span style="font-weight: bold;">To:</span></b> <a
                    moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>
                  <br>
                  <b><span style="font-weight: bold;">Sent:</span></b>
                  Friday, August 3, 2012 7:13 AM<br>
                  <b><span style="font-weight: bold;">Subject:</span></b>
                  Re: [OpenLayers-Users] GeoJson serialize and
                  ModifyFeautre<br>
                </font> </div>
              <br>
              <div id="yiv947485469">
                <div>
                  <div class="yiv947485469moz-cite-prefix">Hi Mark,<br>
                    <br>
                      Could you provide a minimized test case showing
                    the problem then ?  Pasting some code would be nice
                    but sharing a live demo would be even better.<br>
                    <br>
                      Here's a good "how to create a minimized test
                    case" : <a moz-do-not-send="true"
                      class="moz-txt-link-freetext"
                      href="http://docs.openlayers.org/help/minimize.html">http://docs.openlayers.org/help/minimize.html</a><br>
                    <br>
                    Regards,<br>
                    <br>
                    Alexandre<br>
                    <br>
                    On 12-08-02 10:28 PM, Mark Turek wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div style="color: rgb(0, 0, 0); background-color:
                      rgb(255, 255, 255); font-family: 'times new
                      roman', 'new york', times, serif; font-size: 12pt;
                      ">
                      <div>I am using 2.12 version. Here is the problem
                        I have. </div>
                      <div>If I draw a polygon, selecting it with
                        ModifyFeature works fine. If I serialize the
                        layer features and then read them back in
                        through deserialization ModifyFeature never
                        selects anything and stops working.</div>
                      <div>Serialization/Deserialization is done through
                        OpenLayers.Format.GeoJSON.</div>
                      <div><br>
                      </div>
                      <div>Any clue what is happening?</div>
                    </div>
                    <br>
                    <fieldset class="yiv947485469mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" rel="nofollow" class="yiv947485469moz-txt-link-abbreviated" ymailto="mailto:Users@lists.osgeo.org" target="_blank" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a moz-do-not-send="true" 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>
                  <br>
                  <pre class="yiv947485469moz-signature">-- 
Alexandre Dubé
Mapgears
<a moz-do-not-send="true" rel="nofollow" class="yiv947485469moz-txt-link-abbreviated" target="_blank" href="http://www.mapgears.com/">www.mapgears.com</a>
</pre>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a moz-do-not-send="true"
                ymailto="mailto:Users@lists.osgeo.org"
                href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
                target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
              <br>
              <br>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Alexandre Dubé
Mapgears
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
      <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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
  </body>
</html>