Skip to content

Commit

Permalink
[UPD] autoPan options Viglino#855
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Sep 19, 2022
1 parent a3065cf commit e5fb88e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/ol-ext.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* ol-ext - A set of cool extensions for OpenLayers (ol) in node modules structure
* @description ol3,openlayers,popup,menu,symbol,renderer,filter,canvas,interaction,split,statistic,charts,pie,LayerSwitcher,toolbar,animation
* @version v3.2.30
* @version v4.0.0
* @author Jean-Marc Viglino
* @see https://github.com/Viglino/ol-ext#,
* @license BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions examples/popup/map.placemark.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ <h1>ol-ext: Placemark overlay</h1>
// backgroundColor : 'yellow',
contentColor: '#000',
onshow: function(){ console.log("You opened a placemark"); },
autoPan: true,
autoPanAnimation: { duration: 250 }
autoPan: {
animation : {
duration: 250
}
}
});

// The map
Expand Down
7 changes: 5 additions & 2 deletions examples/popup/map.popup.anim.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ <h2>Options:</h2>
closeBox: true,
onclose: function(){ console.log("You close the box"); },
positioning: $("#positioning").val(),
autoPan: true,
autoPanAnimation: { duration: 100 }
autoPan: {
animation: {
duration: 100
}
}
});

// The map
Expand Down
5 changes: 3 additions & 2 deletions examples/popup/map.popup.bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ <h2>Options:</h2>
onshow: function(){ console.log("You opened the box"); },
onclose: function(){ console.log("You close the box"); },
positioning: 'auto',
autoPan: true,
autoPanAnimation: { duration: 250 },
autoPan: {
animation: { duration: 250 }
},
minibar: true
});

Expand Down
5 changes: 3 additions & 2 deletions examples/popup/map.popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ <h2>Options:</h2>
onshow: function(){ console.log("You opened the box"); },
onclose: function(){ console.log("You close the box"); },
positioning: 'auto',
autoPan: true,
autoPanAnimation: { duration: 250 }
autoPan: {
animation: { duration: 250 }
}
});

// The map
Expand Down

0 comments on commit e5fb88e

Please sign in to comment.