Geoportal Extension for Itowns API Reference

Class: MiniGlobe

itowns.control.MiniGlobe

Control to display the MiniGlobe with itowns

new MiniGlobe(options)

Itowns/Controls/MiniGlobe.js, line 20
Name Type Description
options Object optional

control options

Name Type Description
layer Object optional

custom itowns layer to display on the mini globe

Example
var miniglobe = new itowns.control.MiniGlobe();

Extends

Methods

inherited getElement(){HTMLElement}

Itowns/Controls/Widget.js, line 45

Return the widget's container element.

Returns:
container element.

inherited getGlobe(){Object}

Itowns/Controls/Widget.js, line 110

Get the globe associated with the widget. Undefined if the widget is not added to a globe.

inherited getTarget(){HTMLElement}

Itowns/Controls/Widget.js, line 88

Return the widget's target div.

Returns:
target div.

setGlobe(globe)

Itowns/Controls/MiniGlobe.js, line 74

Bind globe to control

Name Type Description
globe GlobeViewExtended

the globe

inherited setOptions(options)

Itowns/Controls/Widget.js, line 98

Change the options of the widget.

Name Type Description
options Object

The new options of the control.

inherited setTarget(targetDiv, position)

Itowns/Controls/Widget.js, line 56

Associates the widget to a specified target div.

Name Type Description
targetDiv HTMLElement

widget target div.

position String

html position attribute.