[OSM-dev] cross-fade map sample code (ol3 or leaflet)

Mattias Dalkvist Mattias at dalkvist.se
Fri Jun 3 10:37:36 UTC 2016


The word you are looking for is opacity [1]
Example from mapbox.js (wrapper around leaflet) [2]

Hope that helps.

--
Mattias

[1] http://leafletjs.com/reference.html#tilelayer-setopacity
[2] https://www.mapbox.com/mapbox.js/example/v1.0.0/opacity/

On Fri, Jun 3, 2016 at 11:25 AM, lars lingner <gislars+list at gmail.com>
wrote:

> Hi Sven,
>
> Am 03.06.2016 um 10:29 schrieb Sven Geggus:
> > lars lingner <gislars+list at gmail.com> wrote:
> >
> >> There are examples for OL3  [1] and for Leaflet [2] and [3].
> >
> > This is simular, but not exactly what I'm up to. What I actually want is
> > dissolving layers transparently like in http://sautter.com/map
>
> I see, I wasn't sure about the transparency. I couldn't find an exact
> example. But have a look at [1]. My idea would be to modify one layer
> slider so that it is effecting the transparency of two layers.
>
> >
> > Sven
> >
> > P.S.: Looks like the correct word for "├╝berblenden" is dissolve in this
> case
> > not fade.
> >
>
> Thanks, thats helpful. I ended up searching for the word "swipe" which
> isn't right either.
>
>
> Lars
>
>
> [1]
>
> http://www.acuriousanimal.com/thebookofopenlayers3/chapter02_03_layer_groups.html
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20160603/b249e6cc/attachment.html>


More information about the dev mailing list