I decided to network several coffee shops, canteens, etc., to simplify the search, I combined everything into one array of seats. I deduce the picture + map area (I take the coordinates from the database). Now the finished array consists of 200x200 places (40000), each place in the MySql database is 6 int11 fields plus 2 varchar255 fields. I highlight the script maphilight , and if you use a div , then the highlight of the occupied places could be implemented through the banal classes and css! Now it seems to be displaying normally, in fact, not all 40,000 places are displayed there, but for now, 1000 is out of force, so I think what to do to optimize the output on the page is to leave area + maphilight or is it a div? If you still have to display 40,000 zones?
|
1 answer
By experimenting on different hosting and on different browsers, I found out that map is faster than area plus!
The output of 5000 div elements was successful in half the cases, on mobile gadgets there was a failure of 90%. More than 5,000 items almost everywhere complete failure.
The output of one map and inside the 50000 area tags passed flawlessly on all the experimental resources !!
In all cases, the load on the database is minimal, i.e. purely browser war ....
Yuzay map!
|
DOMwill lag. maybe as an option oncanvasto do? - Invision