Add WebGL text defaults

This commit is contained in:
GaborFarkas
2017-05-09 14:12:48 +02:00
parent 9fc0fb5e74
commit 2ed5abed07

View File

@@ -5,12 +5,20 @@ goog.require('ol');
if (ol.ENABLE_WEBGL) {
/**
* @const
* @type {string}
*/
ol.render.webgl.defaultFont = '10px sans-serif';
/**
* @const
* @type {ol.Color}
*/
ol.render.webgl.defaultFillStyle = [0.0, 0.0, 0.0, 1.0];
/**
* @const
* @type {string}
@@ -51,6 +59,21 @@ if (ol.ENABLE_WEBGL) {
*/
ol.render.webgl.defaultStrokeStyle = [0.0, 0.0, 0.0, 1.0];
/**
* @const
* @type {string}
*/
ol.render.webgl.defaultTextAlign = 'center';
/**
* @const
* @type {string}
*/
ol.render.webgl.defaultTextBaseline = 'middle';
/**
* @const
* @type {number}