Hello everyone
I've been trying to get this to work but failed miserably and so, I come to request your help.
First things first:
As you can see, when you load the page for the first time the map doesn't center on the marker (both coordinates are the same - the ones provided for the pan and the ones provided for the marker).
I understood that the center is slightly off in Firefox and Chrome.
If you try this in IE, you can see that the map won't even come close to the marker.
As I've been told by someone very patiente and helpful, this could be related to the map size not getting define before the marker is set and, thus, the dimensions of the container getting mixed up.
I don't think this is the case as after the #1 pan, every pan works fine.
Furthermore, I seem to have to execute, every single time the page loads, the "L.Util.requestAnimFrame(map.invalidateSize,map,!1,map._container);" fix, so all the tiles get loaded.
Is this a common situation?
Thank you very much for all your help.
Ricardo