Add padding to directions popups
Clicking on a direction step now pans to the popup, but includes some padding so that the popup is not hidden in the corner of the screen. Closes #1745
This commit is contained in:
parent
c12ed85233
commit
97f75e82c0
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ OSM.Directions = function (map) {
|
||||||
var dragging; // true if the user is dragging a start/end point
|
var dragging; // true if the user is dragging a start/end point
|
||||||
var chosenEngine;
|
var chosenEngine;
|
||||||
|
|
||||||
var popup = L.popup();
|
var popup = L.popup({autoPanPadding: [100, 100]});
|
||||||
|
|
||||||
var polyline = L.polyline([], {
|
var polyline = L.polyline([], {
|
||||||
color: '#03f',
|
color: '#03f',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue