Skip to content

Commit c274bef

Browse files
committed
fix error message of setMask
1 parent d69836a commit c274bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layer/Layer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ class Layer extends JSONAble(Eventable(Renderable(Class))) {
365365
*/
366366
setMask(mask) {
367367
if (!((mask.type === 'Point' && mask._isVectorMarker()) || mask.type === 'Polygon')) {
368-
throw new Error('Mask for a layer must be a marker with vector marker symbol, a Polygon or a MultiPolygon.');
368+
throw new Error('Mask for a layer must be a marker with vector marker symbol or a Polygon.');
369369
}
370370

371371
if (mask.type === 'Point') {

0 commit comments

Comments
 (0)