34 lines
726 B
JavaScript
34 lines
726 B
JavaScript
"use strict";
|
|
/**
|
|
* Value object for system entity.
|
|
*
|
|
* @author Alex Hnatkovskyy
|
|
* @constructor
|
|
*/
|
|
function LocationVO() {
|
|
this.floorMapId = '';
|
|
this.poi = '';
|
|
}
|
|
/**
|
|
* Setup inheritance chain.
|
|
*/
|
|
LocationVO.prototype = Object.create(BaseVO.prototype);
|
|
LocationVO.prototype.constructor = LocationVO;
|
|
/**
|
|
* Constants section.
|
|
* Read-only state will be enforced later.
|
|
*/
|
|
LocationVO.SCALE_LEVELS = [100, 50, 25];
|
|
LocationVO.MAP_TYPE = 'floormap';
|
|
LocationVO.GMAP_MAX_ZOOM = 10;
|
|
LocationVO.GMAP_MIN_ZOOM = 8;
|
|
LocationVO.GMAP_TILE_SIZE = 256;
|
|
LocationVO.DEFAULT_SCALE = 100;
|
|
/**
|
|
* @override
|
|
* @return {Array}
|
|
*/
|
|
LocationVO.prototype.getProps = function () {
|
|
return ['entityId', 'type', 'displayValue'];
|
|
};
|