Home > Net >  Baidu map to create a Polygon new BMap. Polygon (a, b) why can't the first parameter is a varia
Baidu map to create a Polygon new BMap. Polygon (a, b) why can't the first parameter is a varia

Time:03-17

New BMap baidu map to create Polygon. The Polygon (a, b), the figure below, the incoming detail point no problem, you can create a successful,
But if the detailed point data in the variable substitution, will not be able to create successful, searched some information, don't deal with this problem,
Consult with your bosses

CodePudding user response:

CodePudding user response:

The top once,,,

CodePudding user response:

The top once,,,

CodePudding user response:

Don't add variables directly in array variable declarations for array
Let polygonArr=[];
//for...
Enclosing polygon=new BMapGL. Polygon (polygonArr, {
StrokeColor: 'blue',
StrokeWeight: 2,
StrokeOpacity: 0.5,
//enableEditing: true//whether to enable the line edit
});
  • Related