Compare commits

..

3 Commits

Author SHA1 Message Date
Andreas Hocevar
db0c8c3c3a Update package version to 3.10.1 2015-10-09 17:38:41 +02:00
Andreas Hocevar
1941be9995 Changelog for v3.10.1 2015-10-09 17:37:52 +02:00
Marc Jansen
313bff7aff Merge pull request #4242 from marcjansen/fix-drawtext-regression
Fix a drawText regression introduced with 31a68e2
2015-10-09 17:32:51 +02:00
3 changed files with 10 additions and 5 deletions

7
changelog/v3.10.1.md Normal file
View File

@@ -0,0 +1,7 @@
# v3.10.1
## Summary
This is a patch release that fixes a regression causing text styles with a fill but no stroke to not be rendered.
* [#4242](https://github.com/openlayers/ol3/pull/4242) - Fix a drawText regression introduced with 31a68e2 ([@marcjansen](https://github.com/marcjansen))

View File

@@ -1,6 +1,6 @@
{
"name": "openlayers",
"version": "3.10.0",
"version": "3.10.1",
"description": "Build tools and sources for developing OpenLayers based mapping applications",
"keywords": [
"map",

View File

@@ -1560,10 +1560,8 @@ goog.inherits(ol.render.canvas.TextReplay, ol.render.canvas.Replay);
*/
ol.render.canvas.TextReplay.prototype.drawText =
function(flatCoordinates, offset, end, stride, geometry, feature) {
if (this.text_ === '' ||
!this.textState_ ||
(this.textFillState_ &&
!this.textStrokeState_)) {
if (this.text_ === '' || !this.textState_ ||
(!this.textFillState_ && !this.textStrokeState_)) {
return;
}
if (this.textFillState_) {