[OpenLayers-Users] Trying out the new Mapguide Layer support in the dev branch

Mike Adair madair at dmsolutions.ca
Thu Feb 28 15:30:48 EST 2008


I just tested by creating a tiled version of the Sheboygan sample 
dataset with 8 zoom levels and it worked fine:

var extent = new 
OpenLayers.Bounds(-87.865114442365922,43.665065564837931,-87.595394059497067,43.823852564430069);
var tempScales = 
[20000000,440142.04206,96862.50859,21316.63117,4691.17279,1032.39118,227.19938,50];
var mapOptions = {
       maxExtent: extent,
       scales: tempScales,
       units: 'dd',
       projection: 'EPSG:4326'
};
map = new OpenLayers.Map( 'map', mapOptions );

The bounds being used come from the Map object so I'm wondering if you 
set up the map correctly?  Projection or units perhaps?  If not, is it 
possible to have a look at your test case?

Mike



Zac Spitzer wrote:
> I have been testing out the new mapguide support -
> http://trac.openlayers.org/ticket/995
>
> It works well with non tiled images for me, however, I have been
> unable to get the tiled images to work
>
> I have set my bounds for Australia to match my mapDefinition
>
> var extent = new OpenLayers.Bounds(112.931740,-43.587490,153.632810,-8.933330);
>
> but the tiles don't come up, the request GETTILEIMAGE request looks fine.
>
> when i dump the bounds being passed into calculateGridLayout in Mapguide.js
>
> left-bottom=(-395.8841059168209,-390.06229688031436)
> right-top=(662.4486559168209,337.5414768803144)
>
> I have just been playing the the example file.
>
> z
>
>   



More information about the Users mailing list