Hi all,

I'm trying to show data from EPSG:32636 over some google layers. I'm
experiencing some cross-browser issues, which results in a a strange
behavior.

I'm using a GML vector layer produced from the FWtools ogr2ogr.

In firefox, the features I'm displaying align properly, while in Chrome they
do not. Any suggestions?

Here's my jscript copypasta

function initGis() {
map = new OpenLayers.Map ("map",
{
controls:[
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.ScaleLine()],
   sphericalMercator: true,
   maxExtent: new
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
   maxResolution: 156543.0399,
   numZoomLevels: 22,
   units: 'm',
   projection: new OpenLayers.Projection("EPSG:900913"),
}
);
        var gphy = new OpenLayers.Layer.Google(
               "Google Physical",
{type: google.maps.MapTypeId.TERRAIN}
            );
var gmap = new OpenLayers.Layer.Google(
                "Google Streets", // the default
                {numZoomLevels: 20}
            );
                var ghyb = new OpenLayers.Layer.Google(
                "Google Hybrid",
                {type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20}
    );
                var gsat = new OpenLayers.Layer.Google(
                "Google Satellite",
                {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
            );
var  arch_s = new OpenLayers.Layer.GML ("Archaeological Sites",
"data/arch_sites2.gml",
 { projection: new OpenLayers.Projection("EPSG:32636"),
format:OpenLayers.Format.GML
});

  map.addLayers([gphy, gmap, ghyb, gsat, arch_s]);

 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