-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polygonList not rendering the polygons #323
Comments
This one works. Added demo to server side map circle page
|
Legend, that worked, I needed to add in : Map = _map1.InteropObject, in the options, sorry I thought the PolygonList.CreateAsync(_map1.JsRuntime, would do it , thank you |
sorry, is removing done via or await _polygonList.RemoveAllAsync(); neither of them are working, I want to remove the polygon off the map |
Worked out you can do it with the loop; foreach (var polygonz in _polygonList.Polygons) does the maps version work? _polygonList.SetMaps(null); _polygonList.Polygons.Values.SetMap(null); So its not one at a time? |
does the maps version work? I dont get this |
Sorry, No the maps version doesnt work, I wrote some javascript to handle it, |
Could you give example what steps is done and you dont get desired result? I want to reproduce |
sure, I'm not a good programmer, so likely doing something really bad but; Concept I came up with was to get the guid's sent over in an array, find them using the object manager and remove them; So javascript command: works for polygon or markers
//on the blazor side, I found out that there is a limit on the amount of data you can send, so I split at 20 (likely could be more)
So result was it reduced the amount of websocket trips for removing, i will try to increase the 20 to see where it cuts off, to further reduce ws round trips update- 35 works |
I think you could do similar to this. Whats wrong with this approuch?
|
Is there anything extra we need to do when using polygonlist, I'm just using the same paths that worked indervidually, but its not creating them;
_polygonList = await PolygonList.CreateAsync(map1.JsRuntime, DictofAllPolygons);
The text was updated successfully, but these errors were encountered: