(by Google Translator)
I have a page that generates the first map with the default filters and the user can also apply filters to update the map. The problem is that when I update my map via AJAX instruction, I get an error alert
TypeError: Cannot read properties of undefined (reading 'style')
and which increases the amount of alerts as the user applies new filters. Images are generated normally even with the error.
How can I solve this problem?
Despite the problem, I really liked this library. It's quite flexible and effective.
(by Google Translator) I have a page that generates the first map with the default filters and the user can also apply filters to update the map. The problem is that when I update my map via AJAX instruction, I get an error alert
and which increases the amount of alerts as the user applies new filters. Images are generated normally even with the error. How can I solve this problem? Despite the problem, I really liked this library. It's quite flexible and effective.
My code below: