Add text background rendering and text padding

This commit is contained in:
Andreas Hocevar
2017-11-10 16:47:15 +01:00
parent bbec759c5e
commit 1afc686af9
7 changed files with 312 additions and 48 deletions
+7
View File
@@ -77,6 +77,13 @@ ol.render.canvas.defaultTextAlign = 'center';
ol.render.canvas.defaultTextBaseline = 'middle';
/**
* @const
* @type {Array.<number>}
*/
ol.render.canvas.defaultPadding = [0, 0, 0, 0];
/**
* @const
* @type {number}