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"><<a href="mailto:tschaub@opengeo.org">tschaub@opengeo.org</a>></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>
> ----- Forwarded message from Jonathan Pasquier -----<br>
<div class="im">><br>
> Hello Chris,<br>
><br>
> I know that OpenLayers has support for vector drawing in all the browsers,<br>
> I have used a lot this feature and it's working really well.<br>
><br>
> What I wanted to do was just to experiment with SVG Web as well as get an<br>
> insight on the internals of OpenLayers.<br>
> As you can see on my webpage, the port of svg web to openlayers is not<br>
> really usable at the moment (missing features + speed issue).<br>
><br>
> I know that introducing a dependency upon an external library is not really<br>
> great, but it could be nice to have a full SVG support across all browsers.<br>
> This could allow us to use specific SVG features (SMIL, filters, etc..) or<br>
> to use SVG art on openlayers maps.<br>
><br>
> What do you think about it?<br>
><br>
<br>
</div>My opinion is that we'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>
> Regards,<br>
><br>
> Jonathan<br>
><br>
><br>
> 2009/11/30 Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>><br>
><br>
>> On Fri, Nov 27, 2009 at 03:06:24PM +0100, Jonathan Pasquier wrote:<br>
>>> Hello,<br>
>>><br>
>>> I have been doing some experiment with OpenLayers recently, and<br>
>> especially<br>
>>> with the Vector feature.<br>
>>> After seeing the recent announcement of a new release of SVG<br>
>>> web<<a href="http://code.google.com/p/svgweb/" target="_blank">http://code.google.com/p/svgweb/</a>>,<br>
>>> a js library which aims to provide suport for SVG to all browser,<br>
>>> I have decided to try to integrate it with OpenLayers so I could use my<br>
>>> beloved SVG under any browser (including IE!!!)<br>
>> OpenLayers already has support for vectors in all browsers, including IE.<br>
>> No use of an external library is neccesary.<br>
>><br>
>> What were you trying to accomplish using svgweb?<br>
>><br>
>> -- Chris<br>
>><br>
>>> After a couple of days fighting against the DOM, javascript and flash, I<br>
>>> have finally manage to get something usable.<br>
>>><br>
>>> It still in alpha stage, but if you want you can give it a try.<br>
>>><br>
>>> Source and examples are available here:<br>
>>> <a href="http://www.bordel-de-nerd.net/olsvgweb/" target="_blank">http://www.bordel-de-nerd.net/olsvgweb/</a><br>
>>><br>
>>> I have only tested it under Firefox 3.5 and IE 8, but it should work with<br>
>>> other browsers as well.<br>
>>><br>
>>> Any comment or suggestion will be welcome!<br>
>>><br>
>>> Regards,<br>
>>><br>
>>> Jonathan<br>
>>> _______________________________________________<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>
>><br>
>> --<br>
>> Christopher Schmidt<br>
>> MetaCarta<br>
>><br>
><br>
</div></div>> ----- End forwarded message -----<br>
><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>