by mistermann · 9y ago · 0 comments
[1] comparemaps.drona.ro
Questions/comments:
"Make Firefox get along with Google Maps (check this if you experience lag while dragging Google Map or OSM)" - what does this do?
Running this, Google maps seems reasonably comparable to the others, yet when I just load Google maps on its own to look something up, it can easily take 5+ seconds to load.....any idea what might cause this discrepancy?
Overlaying a more prominent brand label on each would be an improvement.
Well done, I really like it!
In this case Chrome can handle a lot of events and Google Maps generate a lot of events. So in Chrome it is smooth. In other browsers (I use Firefox) the browser will choke on events and the map will lag. Maybe is just a matter of compiling Firefox with better defaults (more memory allocated, smaller tick rate for events, I don't know, I'm just making suppositions, I have no clue how a browser works) but it feels slower.
To prevent this I throttle the events (checkbox checked): I kill the event if it arrived too fast or the change in mouse position is too small. This will make the map more responsive.
Please note that I don't say that Chrome does this intentionally. But it happens.
I've put more information here at the time: https://stackoverflow.com/questions/16645766/google-maps-api...
1. Google's embedded maps & API are significantly faster than their own maps on https://maps.google.com/. That particular team seems to have just recently fired or re-assigned every developer with any knowledge or - more likely, interest in - performance
2. I would guess the performance of the openstreetmap.org tileservers are the biggest bottleneck in your example. Their own website says "The tile service comes with no guarantee as to availability or speed", which is why alternative hosts of that dataset are so proliferate. Including a few alternative OSM tile hosts like opencyclemap, Mapbox, Mapzen, &c. could be very interesting.
But how could that be?