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

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jul 6 08:58:34 EDT 2010


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", "gml/polygon.xml"));
>
> I don't know how to load GML on the fly without a prepared file. Is it
> possible to draw a GML string I put in a hidden text field or a hidden div
> on the page instead?
>
> Thanks!
> /Matti
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Load-GML-layer-from-text-field-tp5260132p5260132.html
> 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