If you need vector symbols you should have a look at this example. http://dev.openlayers.org/sandbox/camptocamp/vectorSymbols/examples/vector-symbols.html
Two notes : - This only works for point features, - this converts svg symbols into vml groups so that they can be rendered into IE. Regards, Pierre On Dec 12, 2007 9:28 PM, miles <[EMAIL PROTECTED]> wrote: > Tim Schaub wrote: > > Hey- > > > > miles wrote: > > > >> Are there any examples of using a SVG overlay? I didn't see any. I > >> suspect it's kind of tricky since I assume the SVG coordinate system > >> would need to be translated to the coordinate system/projection being > >> used for the base layer. > >> > > > > If you open the following page in Firefox, you're looking at an "SVG > > overlay." > > > > http://openlayers.org/dev/examples/rotate-features.html > > > > Did you mean something different? > > > > yes, I realize OpenLayers renders in SVG or VML but I meant overlaying > an actual SVG xml file. This would permit displaying icons made in > Inkscape, etc and I would think be faster since OpenLayers does not have > to convert the vector language code to SVG. Obviously it would only > display in a browser that supports SVG - or should we say won't display > in IE, the only browser that does not support SVG ): > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <!-- Created with Inkscape (http://www.inkscape.org/) --> > <svg > xmlns:svg="http://www.w3.org/2000/svg" > xmlns="http://www.w3.org/2000/svg" > version="1.0" > width="744.09448" > height="1052.3622" > id="svg2"> > <defs > id="defs4" /> > <g > id="layer1"> > <path > d="M 231.42858 336.64789 A 48.57143 47.142857 0 1 1 > 134.28572,336.64789 A 48.57143 47.142857 0 1 1 231.42858 336.64789 z" > > style="fill:#ff0000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" > id="path2160" /> > </g> > </svg> > > > > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
