Closed ivanKyka closed 1 year ago
I think that problem is caused by PointConversion util. That utility is created from pixelHeight, pixelWidth and bbox. Maybe I pass the wrong params into the method call?
Found it! PixelWidth and PixelHeight must be proportional to bbox width and height
Glad you found it! Sorry I didn't get a chance to look into it. Generally pixel width and height should match the pixel width and height of the map window but keeping it proportional to the bbox should probably work as well https://github.com/missioncommand/mil-sym-js/wiki/Developer%27s-Guide#3317pixelwidth--pixelheight-for-2d
Maybe should write comments into samples? It will help for next users. Upd: Found it into docs! Thanks
Hi, @michael-spinelli ! I'm still working on migrating my application to web workers. When I check graphics, I found a few cases of incorrect rendering. I didn't find the source of the problem, but I think that is related to bbox which I pass into params
Expected result![image](https://user-images.githubusercontent.com/35963186/193222919-4c90d53c-60ec-49dd-9672-31b98e4baadf.png)
The current result which I have:![image](https://user-images.githubusercontent.com/35963186/193223166-2e2f0b91-0e05-4a5f-8dbc-dfb3f0b24702.png)
Params which I pass into
sec.web.renderer.SECWebRenderer.RenderSymbol2D
: