[OpenLayers-Users] How to create vector layer from SVG (xml)?

Jürgen Dankoweit Juergen.Dankoweit at T-Online.de
Fri Jul 19 07:19:34 PDT 2013


Hi Pawel,

Am 19.07.2013 10:51, schrieb mikeluz:
> Hi 
> 
> My goal is to:
> 1. Create vector layer
> 2. Export its source (SVG)
> 3. Remove all features in layers
> 4. Create features/layers from before exported SVG
> 
> I have already first 3 points, only last one is a mystery for me now. It
> there a way to create a OpenLayers.Layer.Vector with a source from SVG?? Or
> maybe other type of layer that can use SVG as source?

I think I have created in what you are interested. I use SVG objects to
create areas for which severe wheather conditions are predicted. The
objects are collected in an layer:
http://www.dankoweit.de/Projekte/hp_projekte_svg.html

Because OpenLayers needs a lot of browser resources the areas/polygons
are precalculated and stored in a database

I hope this helps a little.

Best regards

Juergen

-- 
Meine stets unfertige Homepage: www.dankoweit.de


More information about the Users mailing list