[OpenLayers-Dev] PanZoomBar doesn't handle forceFixedZoomLevel correct

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Wed Jul 7 10:49:20 EDT 2010


On Jul 7, 2010, at 10:47 AM, ext Marc Jansen wrote:
> PS: I am pretty sure you should leave the "Assigned to:" field in the 
> trac empty so that a core developer can review (and eventually commit) 
> your changes.

For the record, except in times of release, we generally ignore the assigned
to completely. The thing that is most important is the "State" flag.

-- Chris

> 
> 
> Am 06.07.2010 11:01, schrieb Fabian Patzke (OL):
>> Hi I have created a ticket concerning a bug in the PanZoomBar control that is
>> active when forceFixedZoomLevel is set to true.
>> 
>> Ticket: http://trac.openlayers.org/ticket/2725
>> 
>> When setting up a map with fractionalZoom: true and a PanZoomBar  control
>> with forceFixedZoomLevel: true there seems to be a bug in the
>> implementation. If you start at a fixed zoom level and use the zoombar
>> slider you will get a fixed zoom level back (i.e. start from 2 move up 3 get
>> 5). But if you start with a non fixed zoom level you will get a non fixed
>> back (i.e. start from 2.345 move up 3 get 5.345). Maybe this is the way
>> somebody wanted it to be, but for me it feels a bit broken. Also there is an
>> error when you move the slider to the bottom of the bar. Then it returns a
>> negative zoom level and can not zoom to it. In the attached patch I fixed
>> both issues so that you will get back a fixed level and 0 as the minimum
>> zoom level.
>> 
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev

Regards,
-- 
Christopher Schmidt
Nokia




More information about the Dev mailing list