Home > front end >  Vue using openlayers must declare all of the classes and methods to use, otherwise the chain program
Vue using openlayers must declare all of the classes and methods to use, otherwise the chain program

Time:11-11


As shown,
The first part is the introduction of class, this written in the source only requires ol points in the following class, but here must be all, the statement can use the
The second part is to declare a method, under normal circumstances, our writing is ol. Proj. The get (), you can achieve function, and, after playing the debugger, ol. Proj. The get () is real,
But will sign up for undefined, after the vue program through, if late for function expansion is as above must be declared and classes, very troublesome, to write down go to, less than half a page is to be quiet and clear, bosses, is there any better solution
The classification, additionally, why didn't get the vue... @ CSDN programmers

CodePudding user response:

Encountered the same problem
  • Related