After the ArcGISCache layer is overlaid with another vector layer. The
features in ArcGISCache layer do not locate in where they are supposed to
be. In other words, these two layers cannot be overlapped. Here is the link
to my work: https://jdev.udot.utah.gov/apex/dev3/f?p=850:604 

First, I specified the map options:

//Set map options
var options = {
projection: new OpenLayers.Projection("EPSG:26912"),
displayProjection: new OpenLayers.Projection("EPSG:26912"),
units: "m",
numZoomLevels: 15,
maxResolution: 'auto',
maxExtent: new OpenLayers.Bounds(231029.88, 4094991.41, 673579.22,
4651716.6),


resolutions: new Array(4891.9699988358307,
2445.9849999470835,
1222.9925001058336,
611.49625005291682,
305.74812489416644,
152.87406250000001,
76.437031263229201,
38.218515631614601,
19.109257813161459,
9.5546289052578111,
4.7773144526289055,
2.3886572265790367,
1.1943286131572264,
0.59716430657861319,
0.2985821532893066),
tileSize: new OpenLayers.Size(512,512),
fractionalZoom: false
};

map = new OpenLayers.Map('map', options);


Then the base map layer and the vector layer on top were added

//Add base map layer

agrcbase = new OpenLayers.Layer.ArcGISCache( "AGRC Basemap",
"http://mapserv.utah.gov/arcgiscache/UtahBaseMap-Vector/Layers";,
{layername: '_alllayers', isBaseLayer: true, tileOrigin: new
OpenLayers.LonLat(-5120900,9998100),type: 'jpg'
});


//Add another vector layer

var lyRoute = new OpenLayers.Layer.Vector(
"Utah Route",
{strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
    version: "1.1.0",  
    srsName: "EPSG:26912",
    url:"https://jdev.udot.utah.gov/geoserver/ows?service=WFS";,
    featureType: "TMP_LRS_ROUTE",
    featureNS: "http://maps.udot.utah.gov/ugdbtest";,
    geometryName: "ROUTE_DIR_GEOM"
    })
}
);
     
map.addLayers([agrcbase, lyRoute]);

Anyone knows what causes this error? Is it possible to make these two layers
exactly overlapped?

Thanks a lot!!!


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ArcGISCache-layer-does-not-work-with-other-layers-tp5915432p5915432.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to