hi all, I've had trouble adding layers with GML files and do not understand
where he might be wrong, I'm doing wrong, I do not want to use adicionalmete
MetaCarta layer, but only my files gml.
this a fragment of what I'm doing:
// create map
map = new OpenLayers.Map("map",{
units:"m",
scales:
[2000000,1000000,500000,250000,100000,50000,25000,10000,5000,2500,1000,500,250],
// proyeccion colombia
projection:"EPSG:21891",
maxExtent: new OpenLayers.Bounds(1059780, 865620,
1061051, 864202)
});
var Lindero = new OpenLayers.Layer.GML("Lindero",
"GML/LINDERO.gml", {
format: OpenLayers.Format.GML,
formatOptions: {
'extractStyles': true
}
});
map.addLayer(Lindero);
var edificaciones = new OpenLayers.Layer.GML("edificaciones",
"GML/edificaciones.gml", {
format: OpenLayers.Format.GML,
formatOptions: {
'extractStyles': true
}
});
map.addLayer(edificaciones);
var redpeatonal = new OpenLayers.Layer.GML("red peatonal",
"GML/peatonalred.gml", {
format: OpenLayers.Format.GML,
formatOptions: {
'extractStyles': true
}
});
map.addLayer(redpeatonal);
if (!mapa.getCenter()) mapa.zoomToMaxExtent();
thanks for any response
Ricardo Rodríguez
Ing. Topográfico
Univalle
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users