Hi,

You have to have one baselayer, so try 
lindero.isBaseLayer=true; //after map.addLayer()
 
To add vectorlayers to your map, you can try something like this:

function addGMLlayer(title, url)
{
    var Lindero = new OpenLayers.Layer.GML(title, url, {
        format: OpenLayers.Format.GML,
        formatOptions: {
            'extractStyles': true
        }
    });
    map.addLayer(Lindero);
}    

If the gml-files come not from the same domain as your page, then you have
to use a proxy-script.

Arnd
________________________________

Von: [email protected] [mailto:[email protected]] Im
Auftrag von Ricardo Rodríguez
Gesendet: Freitag, 15. Januar 2010 15:50
An: [email protected]
Betreff: [OpenLayers-Users] help(upload and update files)


hi all, there is some ecript to upload files and add them to the layers of
the viewer openlayers


thanks for any response

Ricardo Rodríguez
Ing. Topográfico
Univalle


_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to