Hi Tim,<br><br>I understand your point, I was just thinking that if it were possible to use a unique renderer across all platforms, it would greatly simplify maintenance and it would make it easier to add new feature.<br>Well, it might happen one day, around 2020, when all browsers will implement the same standard for vector drawing :-)<br>
<br>About the features that I would like to see added in OpenLayers...<br>Well, you make me feel like a little child writing his letter to Father Christmas :-)<br><br>I think it would be really nice to add an easy API to manipulate features.<br>
For instance it would be great to be able to assign arbitrary id or classes to a feature and then retrieve features using that id or class (a bit like what we can do with DOM node)<br><br>It would also be great to have an easy way of setting individual properties of features.<br>
For instance, I could have a point feature that inherit its style from the layer style, but with a thicker border (in this case, I would like to be able to just set the stroke width ). This would behave a bit like CSS inheritance.<br>
<br>Talking about features, there are also a couple of things that I think could be really great:<br><br>It could be great also to add a state to the feature, to indicate weather a feature is selected or not. At the moment, if you want to know if a specific feature is selected, you have to loop through the selected features of the vector layers and check whether it is in it or not.<br>
The renderer could then use this information to decide which style to apply to the feature before drawing it.<br>This, coupled with some methods to select features on a vector layer, would make it really easy to programmaticaly select features (at the moment you have to use the SelectControl to do it).<br>
<br>Finally it would be great to have an API to animate features (or better said, to animate properties of feature, like radius, fill color, etc...). <br><br>Well, at the end this has more of a wish-list than a simple mail :-)<br>
I would be happy to collaborate to get any of these features implemented in OpenLayers.<br><br>Regards,<br><br>Jonathan<br><br><div class="gmail_quote">2009/12/2 Tim Schaub <span dir="ltr">&lt;<a href="mailto:tschaub@opengeo.org">tschaub@opengeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey-<br>
<br>
Christopher Schmidt wrote:<br>
&gt; ----- Forwarded message from Jonathan Pasquier -----<br>
<div class="im">&gt;<br>
&gt; Hello Chris,<br>
&gt;<br>
&gt; I know that OpenLayers has support for vector drawing in all the browsers,<br>
&gt; I have used a lot this feature and it&#39;s working really well.<br>
&gt;<br>
&gt; What I wanted to do was just to experiment with SVG Web as well as get an<br>
&gt; insight on the internals of OpenLayers.<br>
&gt; As you can see on my webpage, the port of svg web to openlayers is not<br>
&gt; really usable at the moment (missing features + speed issue).<br>
&gt;<br>
&gt; I know that introducing a dependency upon an external library is not really<br>
&gt; great, but it could be nice to have a full SVG support across all browsers.<br>
&gt; This could allow us to use specific SVG features (SMIL, filters, etc..) or<br>
&gt; to use SVG art on openlayers maps.<br>
&gt;<br>
&gt; What do you think about it?<br>
&gt;<br>
<br>
</div>My opinion is that we&#39;ll be better off enhancing what we have.  If there<br>
are SVG features that can be implemented in multiple browsers, then we<br>
should be able to do this in our current renderers (and we can<br>
cherry-pick any cross-browser implementation stuff that is appropriate<br>
from SVG Web).<br>
<br>
It would help to center this discussion around specific features.  Since<br>
it makes sense from an OpenLayers perspective to talk about rendering<br>
features with symbolizers, what specific features would you like to see<br>
added (not in SVG speak but in OpenLayers speak)?<br>
<br>
Tim<br>
<div><div></div><div class="h5"><br>
&gt; Regards,<br>
&gt;<br>
&gt; Jonathan<br>
&gt;<br>
&gt;<br>
&gt; 2009/11/30 Christopher Schmidt &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;<br>
&gt;<br>
&gt;&gt; On Fri, Nov 27, 2009 at 03:06:24PM +0100, Jonathan Pasquier wrote:<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have been doing some experiment with OpenLayers recently, and<br>
&gt;&gt; especially<br>
&gt;&gt;&gt; with the Vector feature.<br>
&gt;&gt;&gt; After seeing the recent announcement of a new release of SVG<br>
&gt;&gt;&gt; web&lt;<a href="http://code.google.com/p/svgweb/" target="_blank">http://code.google.com/p/svgweb/</a>&gt;,<br>
&gt;&gt;&gt; a js library which aims to provide suport for SVG to all browser,<br>
&gt;&gt;&gt; I have decided to try to integrate it with OpenLayers so I could use my<br>
&gt;&gt;&gt; beloved SVG under any browser (including IE!!!)<br>
&gt;&gt; OpenLayers already has support for vectors in all browsers, including IE.<br>
&gt;&gt; No use of an external library is neccesary.<br>
&gt;&gt;<br>
&gt;&gt; What were you trying to accomplish using svgweb?<br>
&gt;&gt;<br>
&gt;&gt; -- Chris<br>
&gt;&gt;<br>
&gt;&gt;&gt; After a couple of days fighting against the DOM, javascript and flash, I<br>
&gt;&gt;&gt; have finally manage to get something usable.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It still in alpha stage, but if you want you can give it a try.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Source and examples are available here:<br>
&gt;&gt;&gt; <a href="http://www.bordel-de-nerd.net/olsvgweb/" target="_blank">http://www.bordel-de-nerd.net/olsvgweb/</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have only tested it under Firefox 3.5 and IE 8, but it should work with<br>
&gt;&gt;&gt; other browsers as well.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any comment or suggestion will be welcome!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Jonathan<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
&gt;&gt;&gt; <a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Christopher Schmidt<br>
&gt;&gt; MetaCarta<br>
&gt;&gt;<br>
&gt;<br>
</div></div>&gt; ----- End forwarded message -----<br>
&gt;<br>
<font color="#888888"><br>
<br>
--<br>
Tim Schaub<br>
OpenGeo - <a href="http://opengeo.org" target="_blank">http://opengeo.org</a><br>
Expert service straight from the developers.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br>