Uncaught TypeError: Constructor is not a constructor
    at Draw.geometryFunction [as geometryFunction_] (VM2096 app.js:40101)

Any idea what causes that? after that, each mouse movement makes an error.

I am trying to draw a polygon (Laravel, VueJS, OpenLayers)

  • welcome to GIS.SE! you have to share some code. it's hard to debug no code... but, there is a rather strict definition of what topics fit this board, and pure code reviews most likely get voted as off-topic. if there is no direct spatial component, better post/migrate your question on SO or CODEREVIEW.SE even. – ThingumaBob Sep 17 '18 at 18:53
  • 1
    Hey, thanks for your response. I just figured it out... I had 'polygon' and being case sensitive needed to be 'Polygon' – TDawg Sep 17 '18 at 21:58
  • More code, faster solution :) – Chase Choi Sep 18 '18 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.