Hi all list, i want to create a vector with only 2 of all my states in a map
served in geoserver that i use
like a normal wms map in my prove system, but i dont know how i have to do
to bring 2 of all the states in
the form of vectors i made some code but am stack, here is my incomplete
code, i need some help from you,
thanks a lot.
///////////////////////////////////////////////
var vlayerMunicipios;
vlayerMunicipios = new OpenLayers.Layer.Vector("Municipios disponibles");
var municipios = new OpenLayers.Layer.WMS(
"Puntos de Biogas disponibles",
"http://localhost:8080/geoserver/une/wms",
{
'layers' : 'une:uneMunicipios', transparent : true, format : 'image/gif'
}
,
{
isBaseLayer : false
}
);
map.addLayers([municipios,vlayerMunicipios]);
map.zoomToMaxExtent();
function useLayerInMap(layerr, vectorr){
if( ! (layerr instanceof OpenLayers.Layer.WMS)) {
return;
}
if( ! (vectorr instanceof OpenLayers.Layer.Vector)) {
return;
}
vectorr.removeAllFeatures();
var url = layerr.url.split("?")[0];
var schema = new GeoExt.data.AttributeStore({
url : url,
baseParams : {
"SERVICE" : "WFS",
"REQUEST" : "DescribeFeatureType",
"VERSION" : "1.1.0",
"TYPENAME" : layerr.params.LAYERS
}
,
autoLoad : true,
listeners : {
"load" : function(store) {
//featureGrid.setTitle(layer.name);
//selectedLayer = layer;
//configureGrid(store, url);
}
}
}
);
}
useLayerInMap(municipios , vlayerMunicipios);
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que envia este correo asume el compromiso de usar
el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users