mapbox / mapbox-gl-draw

Draw tools for mapbox-gl-js
https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
ISC License
942 stars 590 forks source link

when the frame width is 400px,the demo for "Show drawn polygon area" perf good , but change the width to 700 or more ,it becomes super slow. #908

Open darrenyjy opened 5 years ago

darrenyjy commented 5 years ago

mapbox-gl-js version: v1.2.0 mapbox-gl-draw version: v1.0.9 same as demo

Steps to Trigger Behavior

  1. copy the code of demo in this page (https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/) ,and paste in your local, save as html.
  2. when you drawing polygon ,it perfroms slowly, not soomthly as demo shows
  3. and also drag the map , it is slow too.
darrenyjy commented 5 years ago

somebody help me?

drykovanov commented 4 years ago

I have the same problem, see video: https://yadi.sk/i/LM64KrJWZ88qjA mapbox-gl@1.3.1 @mapbox/mapbox-gl-draw@1.1.2

JamesLMilner commented 4 years ago

I can confirm this is still an issue, to reproduce just open the example in jsfiddle and expand the rendered panel. The FPS drops considerably.

performance-mapbox