Maps Web SDK

Class GeopolViewService

Service for store and retrieve an specific geopolitical view.

This service is used by map instances, widgets and services to store their geopolitical view configuration.

If its constructor receive a GeopolViewService instance as argument it will start listen changes in the given instance and apply the same change in its own. That behavior allows the instances of this class to be updated in cascade.

Constructor

GeopolViewService([parent])

Parameters
Name Description Required Type/Values Default
parent If is defined makes the new instance a "slave" of the given instance No GeopolViewService None

Methods

GeopolViewService.getSupportedViews( ): GeopolView[]

Static method that returns an array with the supported geopolitical views.

Returns

getCurrentGeopolView( ): GeopolView

Returns the current geopolitical view stored in the instance.

Returns

Events

GeopolViewService.Events.GEOPOL_VIEW_CHANGED

Fired after the view was changed.