Angular service

service source

Description

Contains map object and few utility functions working with whole map. Map object get initialized with default view specified in config module (mostly in app.js file).

Methods

calcDistanceForResolution

Calculates the distance from the ground based on resolution and latitude

calcResolutionForDistance

Calculates the resolution for a given distance from the ground and latitude

getCameraCenterCartesian

Gets the position the camera is pointing to in cartesian coordinates and resolution as the third array element

getCameraCenterInLngLat

Gets the position the camera is pointing to in lon/lat coordinates and resolution as the third array element

init

Initializes Cesium map

repopulateLayers (visible_layers)

Add all layers from app config (box_layers and default_layers) to the map. Only layers specified in visible_layers parameter will get instantly visible.

Parameters

NameTypeDescription
visible_layers object

List of layers, which should be visible.