Class: Magnify

ol.Overlay. Magnify

The Magnify overlay add a "magnifying glass" effect to an OL3 map that displays a portion of the map in a different zoom (and actually display different content).


new Magnify(options)

Parameters:
Name Type Description
options olx.OverlayOptions

Overlay options

Extends

Methods


getActive()

Magnify is active

Returns:
Type
boolean

getMagMap()

Get the magnifier map

Returns:
Type
_ol_Map_

refresh()

Refresh the view


setActive(active)

Activate or deactivate

Parameters:
Name Type Description
active boolean

setMap(map)

Set the map instance the overlay is associated with.

Parameters:
Name Type Description
map ol.Map

The map instance.