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

Zac Spitzer zac.spitzer at gmail.com
Thu Feb 28 19:08:28 EST 2008


I'm just playing with the mapguide sample, i'll have another look and
post my results

on a side note, I just checked, an anonymous user can return the
mapDefinition as a json response,
could we make the mapguide provider auto configure itself with default
bounds and scale ranges using
the following kind of request?

also, is it possible to inject addtional url params into the request
(ie &USERNAME=Anonymous)

/mapguide/mapagent/mapagent.fcgi?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&RESOURCEID=
Library%3A%2F%2FSamples%2FSheboygan%2FMapsTiled%2FSheboygan.MapDefinition&FORMAT=application%2Fjson

z

On Fri, Feb 29, 2008 at 7:30 AM, Mike Adair <madair at dmsolutions.ca> wrote:
> 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
>  >
>  >
>



-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168



More information about the Users mailing list