marker-line is not taken into account to calculate cached sprites size fixed #15

2.1.01
javi 11 years ago
parent 1957a4b73f
commit fe8f58fd38

@ -60,10 +60,12 @@
}, shaderVars);
var pointSize = st['point-radius'];
if(!pointSize) {
if (!pointSize) {
throw new Error("marker-width property should be set");
}
var canvasSize = pointSize*2;
// take into account the exterior ring to calculate the size
var canvasSize = (st.lineWidth || 0) + pointSize*2;
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');

Loading…
Cancel
Save