[geotk] Set Max Resolution

Arnaud Vandecasteele arnaud.sig at gmail.com
Wed Nov 30 15:58:16 EST 2011


I  Johann,

Thank you for your answer.
In fact I don't want to set it in the rules but more in the MapContext.
I would like to be able to stop the zoom control after a specified resolution.
Like the maxResolution parameters in the OpenLayers Lib [1].
Do you know how I can do that ?

Best regards

Arnaud

[1] http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.maxResolution

On Wed, Nov 30, 2011 at 8:22 PM, sorel johann <johann.sorel at geomatys.fr> wrote:
>
> You can set the min/maxScaleDenominator on style rules if that's what you
> are looking for.
>
> example here, Line 543 :
> http://hg.geotoolkit.org/geotoolkit-pending/file/211cb7b03c39/demos/geotk-demo-samples/src/main/java/org/geotoolkit/pending/demo/symbology/Styles.java
>
> johann
>
>
> On 30/11/2011 14:01, Arnaud Vandecasteele wrote:
>>
>> Hi all,
>>
>> I would like to know if it's possible to set the maximal resolution of a
>> map.
>> The answer must be simple but I can't find it in the API.
>>
>>
>> Regards
>>
>> Arnaud
>> _______________________________________________
>> Geotoolkit mailing list
>> Geotoolkit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit



-- 
--------------------------------------------------------------------
Van De Casteele Arnaud
Mines Paris Tech - CRC
Sophia-Antipolis
0698 24 25 29
SIG - WebMapping - SOLAP - BI - GeoCollaboration

Web Site
http://geotribu.net/
http://www.i2c.eu/


More information about the Geotoolkit mailing list