You can use map.setView(newView).

Tim

On Wed, Sep 7, 2016 at 6:42 AM Stefan Thöni via OL3 Dev <
ol3-dev+apn2wqflpunp5xz8n4ecezwzp5g16vfhjhtn5bxvltlvvz01oy3kf...@googlegroups.com>
wrote:

> Hello everyone,
>
> Is there any way to dynamically change the maxZoom of ol.View?
>
> I would need it because we have a google maps integrated which has
> different maxZooms depending on the location shown on the map.
>
> I tried using the function view.set('maxZoom', xx); but no no effect.
>
> Thanks in advance,
> Stefan
>
> --
> You received this message because you are subscribed to the Google Groups
> "OL3 Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/ol3-dev.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ol3-dev/d4a47cad-85af-4b0b-a246-2653a8c024c3%40googlegroups.com
> <https://groups.google.com/d/msgid/ol3-dev/d4a47cad-85af-4b0b-a246-2653a8c024c3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "OL3 
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ol3-dev/CAKdrn%2Bfj3z19k8HVyneYaS3VsPD1Nyvc4ZdAAxmQBJFDR7OK%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to