I have a scenario in which users can save their display style. When a user navigates to this page with a map, it should display the map as it was before.
The user can change the colors of geographical places and borders, as well as apply thematic styles based on demographic information.
With the release of the new loadGeoJson, I had great success with speeding up my application. Initially, I myself drew all geographic regions through JS. This caused some memory problems in approximately 1,500 geographical regions. This new functionality significantly reduces it. I prefer to create Feature objects on the server side and just pass the URL to the map for rendering. This URL is passed along with all other style information to rebuild the map, as it was before.
The problem I am facing is that when I try to apply styles, the map does not receive a list of functions that will be displayed on the map.
Looking through the documentation, I do not see any events specifically for the loadGeoJson method, but I saw for addfeature and setgeometry, but none of these events occur when using the loadGeoJson method.
All this was written in Typescript and is trying to adhere to a rather strict MVVM approach, using Knockout to handle all user interface changes for me through the binding.
Is there another event that I can bind to see when this method completed so that I can apply my styles accordingly?
Is there any other approach where I can bake somewhere ?,
source
share