you need to set both these values to match your map, var mapBounds = new OpenLayers.Bounds(-87.764986990963,43.691398128788,-87.6955215109,43.79752000048); var fixedScales =[1000,1930.6977300000001,3727.5937199999998,7196.8567300000004,13894.95494,26826.95795,51794.746789999997,100000];
On Wed, Jul 1, 2009 at 1:58 PM, ehsan<[email protected]> wrote: > > I'm using the mapguide 2.0, > for the pink image layer (the layer does not show),i use the tiled map > when i right click and view the image it's show: > Index is out of range. > Exception occurred in method MgMapBase.GetFiniteDisplayScaleAt at line 283 > in file > d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\common\platformbase\MapLayer/MapBase.cpp > > > zspitzer wrote: >> >> You need to dive in and find out what the the error was... >> >> Which version of mapguide are you using? >> What did the mapguide server error log say? >> >> try right clicking on a pink tile and view the image >> >> z >> >> On Wed, Jul 1, 2009 at 10:47 AM, ehsan<[email protected]> wrote: >>> >>> Hi, i need help on getting started openlayer with mapguide..?any link >>> that i >>> can use to learn...i'm still new with mapguide and OpenLayer.. >>> >>> i just download the OpenLayers-2.8 and sheboygan.php from the code sample >>> at >>> https://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php >>> https://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php >>> >>> i try to change map layer defination from the sheboygan.php code, but the >>> layer does not appear, it just came out with pink layer...any body >>> help..? >>> >>> Thanks, >>> >>> ehsan. >>> -- >>> View this message in context: >>> http://n2.nabble.com/Openlayers-with-Mapguide-tp3186274p3186274.html >>> Sent from the OpenLayers Dev mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://openlayers.org/mailman/listinfo/dev >>> >> >> >> >> -- >> Zac Spitzer - >> http://zacster.blogspot.com >> +61 405 847 168 >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://openlayers.org/mailman/listinfo/dev >> >> > > -- > View this message in context: > http://n2.nabble.com/Openlayers-with-Mapguide-tp3186274p3186965.html > Sent from the OpenLayers Dev mailing list archive at Nabble.com. > > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > -- Zac Spitzer - http://zacster.blogspot.com +61 405 847 168 _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
