OK, definitely still reverting back to an un-shifted state after panning the map.
What I said above (not shifting when the values in the input boxes are changed) - not a real problem. It was caused by the other (non-working) script.
I do have a solution. Since I freely admit I only have a vague idea what I'm messing with, this could be elegant or it could be a major kludge.
I have added the following code to force a shift update after panning:
- Code: Select all
moveend : update
There's probably a proper syntax to combine it with the "zoomend" event trigger, but I don't know what it is.