[OpenLayers-Users] Swipe

Alexander Petkov greenkov at gmail.com
Thu Jul 2 10:33:21 EDT 2009


On Wed, Jul 1, 2009 at 5:11 PM, <florent.gravin at bluecham.net> wrote:
>> On Wed, Jul 1, 2009 at 4:04 AM, floflo<florent.gravin at bluecham.net> wrote:
>>>
>>> Hi,
>>>
>>> is there a way to realise a swipe with 2 different images in openlayers
>>> in
>>> order to compare them ? (like in Erdas)
>>>
>>> the process of the swap is : 2 layered images (vector or raster), one no
>>> transparent on another, and you can change dynamicly the width of the
>>> one of
>>> the first ground by mouving the edge of this one with the mouse (or
>>> slider),
>>> letting appear the background one, in order to compare the 2 layered
>>> images.
>>>
>>> thks for any help
>>>
>>> Flo
>>
>> Do you want the slider to change the transparency of the top image, or
>> to restrict how much of it is visible ( in terms of coordinate bounds)
>> at 100% opacity?
>>
>> Alex
>>
>
> Hi, the second option... still 100% opacity, the slider would modulate the
> width (by the right edge)
>
> thks


I believe this would be possible, but you are not going to see smooth
right edge transition--the tiles for that layer will be redrawn.

Alex



More information about the Users mailing list