<p>...not sure if this is relevant now or not, since I don't know much about OLON, but this was picked up on my radar today and</p><p>thought I'd send it along in case it is something worth looking into.</p>-e<br><p>
from: <a href="http://blog.sumbera.com/2009/01/10/olon-in-openlayers/">http://blog.sumbera.com/2009/01/10/olon-in-openlayers/</a><br></p><p><br></p><p>Playing with OL context and OLON (OpenLayers Object Notation) that
is based on JSON I have found that the sample provided on the OLON
sandbox in OL repository doesn't work well with vectors, in fact it
ignores vectors at all. Reading through the code it was quite easy to
discover the problem - vector.js (layer) didn't serialize "features",
moreover during deserialization, features were nulled. To make OLON
properly work in OL 2.7 for vectors, add following to the vector.js
(lib\OpenLayers\Layer\Vector.js)</p>
<pre>[line 197]<br><span style="font-size: x-small;">serializable: { <span style="font-size: x-small;"><br></span></span><span style="font-size: x-small; color: rgb(163, 21, 21);"><span style="font-size: x-small; color: rgb(163, 21, 21);">"args"</span></span><span style="font-size: x-small;">: [</span><span style="font-size: x-small; color: rgb(163, 21, 21);"><span style="font-size: x-small; color: rgb(163, 21, 21);">"name"</span></span><span style="font-size: x-small;">],<span style="font-size: x-small;"> <br>
</span></span><span style="font-size: x-small; color: rgb(163, 21, 21);"><span style="font-size: x-small; color: rgb(163, 21, 21);">"props"</span></span><span style="font-size: x-small;">: [</span><span style="font-size: x-small; color: rgb(163, 21, 21);"><span style="font-size: x-small; color: rgb(163, 21, 21);">"features"</span></span><span style="font-size: x-small;">] </span><br>
<span style="font-size: x-small;">},<br></span>[line 238]<br><span style="font-size: x-small; color: rgb(0, 0, 255);"><span style="font-size: x-small; color: rgb(0, 0, 255);"><span style="font-size: x-small; color: rgb(0, 0, 255);"><span style="font-size: x-small; color: rgb(0, 0, 255);">if</span></span></span></span><span style="font-size: x-small;"> (!</span><span style="font-size: x-small; color: rgb(0, 0, 255);"><span style="font-size: x-small; color: rgb(0, 0, 255);">this</span></span><span style="font-size: x-small;">.features) </span><br>
<span style="font-size: x-small; color: rgb(0, 0, 255);"><span style="font-size: x-small; color: rgb(0, 0, 255);">this</span></span><span style="font-size: x-small;">.features = [];</span> </pre>
<p>If you have pure 2.7 OL version installed, following link can help
you to make difs against what is needed for OLON to work at 2.7: <a href="http://trac.openlayers.org/changeset/7323">http://trac.openlayers.org/changeset/7323</a> …or you may download complete 2.7 version of OpenLayers with OLON extension from the MapBinder sample at <a href="http://www.sumbera.com/lab/wmsbinder/getcap.htm">http://www.sumbera.com/lab/wmsbinder/getcap.htm</a> since OL there is not compressed.</p>