Hi all,

I apologize about the noob questions in advance. I've decided to take
Andrea's advice and switch over the HTTP protocol with a layer.vector. I
think I got it right following the example, but I'm not sure since this
isn't working.l This is my code for loading a static gml resource. In
firebug, I can't see the get request. Any suggestions?


 var  arch_s = new OpenLayers.Layer.Vector ("Archaeological Sites",

 {
 stategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({ url: "data/arch_sites2.gml",
format: new OpenLayers.Format.GML()}),
projection: new OpenLayers.Projection("EPSG:4326")
});
            map.addLayers([gphy, gsat, arch_s]);

//centers map on loaded data
if( ! map.getCenter() ){
  if(arch_s){
  arch_s.events.register('loadend', arch_s,
function(){map.zoomToExtent(arch_s.getDataExtent())});
  }
map.setCenter(null, null);
};
}

-- 
Nicholas Efremov-Kendall
Dept. of Anthropology
Washington University in St. Louis
Campus Box 1114
St. Louis, MO, 63130
(917) 370-3489
[email protected] <[email protected]>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to