by mistermann · 9y ago · 0 comments
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...