Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: L.Handler.PathDrag is not a constructor when used with Path.Drag #4

Open
neel opened this issue Jul 11, 2020 · 1 comment

Comments

@neel
Copy link

neel commented Jul 11, 2020

Getting error TypeError: L.Handler.PathDrag is not a constructor when used with Vue2LeafletCanvas. Following are all my imports. I need Leaflet.Editable, Path.Drag as well as LeafletCanvas

import Vue from 'vue'
import vSelect from 'vue-select'
import axios from 'axios'
import axiosCancel from 'axios-cancel';
import { LMap, LMarker, LPolyline, LPolygon, LTileLayer, LLayerGroup, LCircle, LCircleMarker, LTooltip, LPopup} from 'vue2-leaflet';
import 'vue-select/dist/vue-select.css';
import 'leaflet/dist/leaflet.css';
import 'leaflet-editable/src/Leaflet.Editable.js';
import 'leaflet.path.drag/src/Path.Drag.js';
import './style.css'
import chroma from 'chroma-js';
import WeeSpatialInfo from './WeeSpatialInfo';
import {ThemeMixin} from './themes.js';
import Vue2LeafletMarkerCluster from 'vue2-leaflet-markercluster'
import Vue2LeafletCanvas from '@skinnyjames/vue2-leaflet-canvas'
const mbp = require('@mapbox/polyline');
@neel neel changed the title TypeError: L.Handler.PathDrag is not a constructor when used with Path.Dra TypeError: L.Handler.PathDrag is not a constructor when used with Path.Drag Jul 11, 2020
@skinnyjames
Copy link
Owner

skinnyjames commented Jul 14, 2020

Hey neel, thanks for raising this.
Can you post your code that uses L.Handler.Path.Drag with Vue2LeafletCanvas, and steps to reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants