fix permalink artefacts with nogo circles: patch to disable map animation
This commit is contained in:
parent
c4cd00ff9d
commit
a80b968ed9
1 changed files with 12 additions and 0 deletions
|
|
@ -29,6 +29,18 @@ L.Control.Permalink.include({
|
|||
}
|
||||
});
|
||||
|
||||
// patch: no animation when setting the map view, strange effects with nogo circles
|
||||
L.Control.Permalink.include({
|
||||
_set_center: function(e)
|
||||
{
|
||||
//console.info('Update center', e);
|
||||
var params = e.params;
|
||||
if (params.zoom === undefined ||
|
||||
params.lat === undefined ||
|
||||
params.lon === undefined) return;
|
||||
this._map.setView(new L.LatLng(params.lat, params.lon), params.zoom, { reset: true });
|
||||
}
|
||||
});
|
||||
|
||||
L.Control.Permalink.include({
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue