We have been making heavy use of the AGS cache code that was in the
arcgis server sandbox.  The biggest issue we have had was with setting
the extents.

 

I found that the extents had to be different for each zoom level.  I
used the following code to calculate the correct extents, added to the
start of the geturl and setmap functions: 

var res = this.map.getResolution(); 
var tile_height = res*512; 
var yorigin = this.maxExtent.top; 
var ydiff = yorigin-this.ymin; 
var tilecount = ydiff/tile_height; 
var tilecountr = Math.ceil(tilecount); 
var coverage = tilecountr*tile_height; 
var yminorigin = yorigin-coverage; 
this.maxExtent.bottom = yminorigin; 

Because you need a fixed number of tiles to cover the map, the bottom
tile will overlap the edge of the map extents.  At different resolutions
the amount of overlap changes.  This code calculates the y co-ordinate
of the bottom of the map extents, depending on your resolution.  It uses
an addittional attribute "ymin" to store the minimum y value of the data
extents, allowing maxExtent.bottom to change as appropriate.

 

Once the extents issue is sorted the layer works well.

 

I also am in the process of writing some code (which I will share) that
pre generates the layer configuration from the xml file in the cache
directory.

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of John Zastrow
Sent: 30 May 2008 13:26
Cc: [email protected]
Subject: [OpenLayers-Users] ESRI ArcIMS and/or ArcGIS Server Support

 

What's the status of OpenLayers supporting ArcIMS and/or ArcGIS server
output that is not WMS? Anyone?

http://openlayers.org/pipermail/users/2007-May/001571.html

http://blog.davebouwman.net/2006/11/30/OpenLayersConnectorForArcGISServe
r.aspx

http://www.spatiallyadjusted.com/2006/11/30/dave-bouwman-on-a-openlayers
-connector-for-arcgis-server/

 


This e-mail message and any attached file is the property of the sender and is 
sent in confidence to the addressee only. The contents are not to be disclosed 
to anyone other than
the addressee. Unauthorised recipients are requested to preserve this 
confidentiality and to advise the sender immediately of any error in 
transmission. If you experience difficulty 
with opening any attachments to this message, or with sending a reply by email, 
please telephone on + 44-(0)1235 438151 or fax on + 44-(0)1235 438188. 
Any advice contained in this e-mail or any accompanying file attached hereto is 
for information purposes only. RPS do not take any responsibility for 
differences between the original 
and the transmission copy or any amendments made thereafter. If the addressee 
requires RPS to be responsible for the contents of this e-mail, RPS will be 
pleased to issue a signed 
hard copy of the document upon request.
RPS Group Plc, company number: 208 7786 (England). Registered office: Centurion 
Court, 85 Milton Park Abingdon Oxfordshire OX14 4RY.
RPS Group Plc web link: <http://www.rpsgroup.com>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to