Home > front end >  Vue baidu maps how to render the data of the interface?
Vue baidu maps how to render the data of the interface?

Time:09-29

Data on maps only apply colours to a drawing gives death, how to render the background data, just learning vue, don't know much about,
Background data is time, ph, etc., I through binding query retrieval time events, the background data can be printed in other lines, but maps on, and you won't come



Can print out the background data, but I am enclosing ph [1] is an error. The response data.

This is my mark code:
` ` `
Var content \="& lt; Table> ";
The content=\ content \ + "& lt; tr> Acidity (PH) : data. Ph ";
The content=\ content \ + "& lt; tr> Dissolved oxygen (DO mg/L) : 0.8 & lt;/td> ";
The content=\ content \ + "& lt; tr> Nitrogen oxygen (NH3N mg/L) : 0.8 & lt;/td> ";
Content +="& lt;/table> ";


//create information window object
Let the infoWindow \=new BMap. InfoWindow (content, {
Width: 150,//information window width
Height: 100,//information window height
Title: "the current water quality information:"//information window title
});



//to add the name of the data to map
Var label \=new BMap. Label (e.n ame, {
Offset: new BMap. Size (25, 5)
});
MarkerFun (pointNumber infoWindow, label)
})
` ` `

CodePudding user response:

The background data can be at the console page. Print the log, but used as package undefined error
  • Related