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
If you create map distance tool and only draw staring vertex on the map, then try to disable map distance tool, the brower console will print following error:
maptalks.min.js:6 Uncaught TypeError: Cannot read property 'code' of null
at t.e._verifyProjection (VM11840 maptalks.min.js:6)
at t.e.getContainerExtent (VM11840 maptalks.min.js:6)
at n.t.getContainerExtent (VM11840 maptalks.min.js:6)
at n.t.getSize (VM11840 maptalks.min.js:6)
at t.e._msOnDrawEnd (VM11840 maptalks.min.js:6)
at t.i._fire (VM11840 maptalks.min.js:6)
at t.i.fire (VM11840 maptalks.min.js:6)
at t.i._fireEvent (VM11840 maptalks.min.js:6)
at t._fireEvent (VM11840 maptalks.min.js:6)
at t.endDraw (VM11840 maptalks.min.js:6)
If you have draw more than one vertex on the map before disable distance tool, it would work fine.
Please provide a reproduction URL (on any jsfiddle like site)
maptalks's version and what browser you use?
maptalks: 0.43.0
Chrome: 71.0.3578.98
Issue description
If you create map distance tool and only draw staring vertex on the map, then try to disable map distance tool, the brower console will print following error:
If you have draw more than one vertex on the map before disable distance tool, it would work fine.
Please provide a reproduction URL (on any jsfiddle like site)
maptalks distance tool bug demo
The text was updated successfully, but these errors were encountered: