[OpenLayers-Dev] problem in InitResolutions?
Tim Schaub
tschaub at openplans.org
Fri Feb 22 15:22:20 EST 2008
Hey-
Bart van den Eijnden (OSGIS) wrote:
> Sorry for the confusion we had minScale and maxScale swapped around :-)
Yeah, the naming is weird in OpenLayers (though this issue is not unique
to OpenLayers).
OL minScale > OL maxScale
OL minScale =~ SLD MaxScaleDenominator (though our default assumptions
about display resolution are different)
OL minScale =~ MapServer MAXSCALE (and our default assumptions about
display resolution are the same)
The SLD naming makes the most sense.
Tim
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
>
>
> --------- Oorspronkelijk bericht --------
> Van: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
> Naar: dev at openlayers.org <dev at openlayers.org>
> Onderwerp: [OpenLayers-Dev] problem in InitResolutions?
> Datum: 22/02/08 12:34
>
>> Hi list,
>>
>> using latest trunk we are getting a problem in InitResolutions when we try
>> and add a layer with only a minScale and maxScale set.
>>
>> The error is invalid array length and occurs at the following line:
>>
>> confProps.resolutions = new Array(confProps.numZoomLevels);
>>
>> If I look with Firebug numZoomLevels is null on the layer.
>>
>> Any ideas what could be going wrong?
>>
>> Best regards,
>> Bart
>>
>> --
>> Bart van den Eijnden
>> OSGIS, Open Source GIS
>> http://www.osgis.nl
>>
>>
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>>
>>
>
>
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
> !DSPAM:4033,47bedfe0167781431913854!
>
More information about the Dev
mailing list