Displaying multiple property lists and OSM on one page - Fix after leaflet.js update #847
Open
5 tasks done
Labels
bug
Indicates an unexpected problem or unintended behaviour
component: property list
Issue, Pull Request or Discussion related to property lists
QA
Issue or Pull request that is in review
Milestone
Displaying multiple property lists and OSM on one page - Fix after leaflet.js update
Introduction
As mentioned in Issue #703 (comment) there is still an issue that needs to be addressed.
User Story
As a user of the onOffice WordPress plugin, I want each property list and OSM map on a single page to display the correct properties and maps, so that all information is correctly and clearly presented.
Following the release of the Improve Pagination #695 update, an issue has arisen when multiple property lists and OSM maps are used on the same page. The current state results in an error and no OSM for the second property list. Thus, an additional fix is necessary to ensure that each property list matches the correct OSM map and displays the correct properties.
Error or also see browser console
Uncaught Error: Map container is already initialized.
at e._initContainer (Map.js:1094:10)
at e.initialize (Map.js:136:8)
at new e (Class.js:24:20)
at t.map (Map.js:1750:9)
at immobilienliste-alle-immobilien/:539:21
at immobilienliste-alle-immobilien/:557:7
Task / Requirements
The text was updated successfully, but these errors were encountered: