[OpenLayers-Users] help (add gml files)
Ricardo Rodríguez
ricardorodot02 at gmail.com
Fri Jan 15 09:39:36 EST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100115/081972e4/attachment.html
More information about the Users
mailing list