[OpenLayers-Users] help(upload and update files)

Arnd Wippermann arnd.wippermann at web.de
Fri Jan 15 11:55:46 EST 2010


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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Ricardo Rodríguez
Gesendet: Freitag, 15. Januar 2010 15:50
An: users at openlayers.org
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





More information about the Users mailing list