[OpenLayers-Dev] Openlayers with Mapguide

ehsan ehsan85 at yahoo.com
Wed Jul 1 00:44:03 EDT 2009


i just try out something, for this code:
var tiledOptions = {
              units: "dd",
              singleTile: false
            }

when i change the singleTile:false to singleTile:True, the image appear, but
when it set to false,it came out with pink image.

this is atachment of my code
http://n2.nabble.com/file/n3187092/sheboygan.php sheboygan.php 


ehsan wrote:
> 
> i just set both the value, but it is still come out with the pink image
> when i click on the GetTileImage..
> when i right click on the imge, it show the same error..
> 
> 
> zspitzer wrote:
>> 
>> 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<ehsan85 at yahoo.com> 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<ehsan85 at yahoo.com> 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
>>>>> Dev at openlayers.org
>>>>> http://openlayers.org/mailman/listinfo/dev
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Zac Spitzer -
>>>> http://zacster.blogspot.com
>>>> +61 405 847 168
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev at openlayers.org
>>>> 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
>>> Dev at openlayers.org
>>> http://openlayers.org/mailman/listinfo/dev
>>>
>> 
>> 
>> 
>> -- 
>> Zac Spitzer -
>> http://zacster.blogspot.com
>> +61 405 847 168
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>> 
>> 
> 
> 
-- 
View this message in context: http://n2.nabble.com/Openlayers-with-Mapguide-tp3186274p3187092.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.




More information about the Dev mailing list