Skip to content

Commit b7a74ae

Browse files
修复mapboxgl mapvlayer 参数个数判断
1 parent 8f0ba50 commit b7a74ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapboxgl/overlay/MapvLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
*/
2222
export class MapvLayer {
2323
constructor(map, dataSet, mapVOptions) {
24-
if (map instanceof mapboxgl.Map) {
24+
if (arguments.length === 3) {
2525
this.map = map;
2626
delete mapVOptions['layerID'];
2727
this.mapVOptions = mapVOptions;

0 commit comments

Comments
 (0)