How to adaptively position the markers on the map?

There are cards on which markers are positioned at different screens, now this is achieved sleduyushim Javascript code:

If you refresh the page, everything works as it should, but there are situations when the user changed the resolution without a page refresh and then everything floats here so

Please tell me how we can implement the positioning of the markers, to avoid this bug?
July 9th 19 at 10:31
0 answer

Find more questions by tags Adaptive design