[OpenLayers-Users] Load GML layer from text field?

2010-07-06 Thread aznan
Hi! I want to show a GML polygon that I get from a web service on the map. All the examples of showing GML makes me load an XML file as in the gml-layer.html example: map.addLayer(new OpenLayers.Layer.GML(GML, gml/polygon.xml)); I don't know how to load GML on the fly without a prepared file.

Re: [OpenLayers-Users] Load GML layer from text field?

2010-07-06 Thread Bart van den Eijnden (OSGIS)
Check out the vector-formats.html example. Best regards, Bart Hi! I want to show a GML polygon that I get from a web service on the map. All the examples of showing GML makes me load an XML file as in the gml-layer.html example: map.addLayer(new OpenLayers.Layer.GML(GML,