[OpenLayers-Users] Using SVG instead of image as marker icon

Eric Lemoine eric.c2c at gmail.com
Wed Oct 31 01:22:05 EDT 2007


On 10/30/07, Guido_bs <guido.pollini at gmail.com> wrote:
>
> Hello, I'm a new openlayers user, so I have a question for you experts:
> is it possible using an SVG circle instead of a png image as marker icon in
> OpenLayers 2.0?
> My application uses a WFS layer which has a lot of markers (hundreds) and
> each marker has a png icon.
> I think my application could be faster if I use a SVG element (circle)
> instead of an image as marker icon.
> I have not found any example about it, could you tell me if there is any?
> Thanks in advance!
>
> Guido

Hi

Do you pass {featureClass: OpenLayers.Feature.WFS} to your WFS Layer's
constructor? Try removing that option and should get vector points as
opposed to markers.

Hope this helps
--
Eric

What OpenLayers version are you using?



> --
> View this message in context: http://www.nabble.com/Using-SVG-instead-of-image-as-marker-icon-tf4712203.html#a13469241
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list