drunkenmyno opened a new issue #9463: ViewPort on Polygon Layer didnt Update 
when Filter Set
URL: https://github.com/apache/incubator-superset/issues/9463
 
 
   A clear and concise description of what the bug is.
   
   ### Expected results
   
   When a Table is set as Filter for a Polygon Layer.
   
   A Filter is set and the Viewport didnt update.
   
   Error happened 
   
   Could not fit viewport Error: @math.gl/web-mercator: assertion failed.
   
   because the Coordiantes are Zero then. after 
   
    if (formData.autozoom) {
         viewport = fitViewport(viewport, {
           width,
           height,
           points: features.flatMap(getPointsFromPolygon)
         });
       }
   
   Polygon.js
   
   ### Actual results
   
   Viewport zooms out to stanrdard 6.85236157047845, 31.222656842808707
   
   #### How to reproduce the bug
   
   Create a GeoJSON Layer with More then 2 Polygons set a Filter on it.
   The Viewport did not update to the Polygon
   
   ### Environment
   
   
   - superset version: latest
   - python version: 3.6.4
   - node.js version: 13
   - npm version: latest
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [x ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to