You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a problem that wkt.fromObject() methods which doesn't work in vuejs web. I've checked other issues below(google api issue) but i'm using leaflet and I'm not sure how to fix it. Please check below and advise me.
if (layer instanceof L.LinkPolyline) {
let geometry = wkt.fromObject(layer.toGeoJSON().geometry).write()
}
p.s I'm converting vanilla leaflet.js to vuejs framework at the moment. This code works in our original vanilla js project with leaflet 1.0.6 but with npm installed, it just doesn't work. Also, If I import the module like this
import * as wkt from 'wicket'
wicket__WEBPACK_IMPORTED_MODULE_21__.fromObject is not a function
there's another error so I'm importing it like this: let wkt = require('wicket')
Regards,
The text was updated successfully, but these errors were encountered:
Hello, I have a problem that wkt.fromObject() methods which doesn't work in vuejs web. I've checked other issues below(google api issue) but i'm using leaflet and I'm not sure how to fix it. Please check below and advise me.
package.json
code
p.s I'm converting vanilla leaflet.js to vuejs framework at the moment. This code works in our original vanilla js project with leaflet 1.0.6 but with npm installed, it just doesn't work. Also, If I import the module like this
there's another error so I'm importing it like this:
let wkt = require('wicket')
Regards,
The text was updated successfully, but these errors were encountered: