Fix and cleanup all map easing transitions, now supports eased zoom, pan

This commit is contained in:
Bryan Housel
2016-09-22 23:51:40 -04:00
parent 4e1a7cb6c8
commit cd4e6f038e
3 changed files with 91 additions and 91 deletions
+4 -1
View File
@@ -31,6 +31,7 @@ import { UndoRedo } from './undo_redo';
import { Zoom } from './zoom';
import { cmd } from './cmd';
export function init(context) {
function render(container) {
var map = context.map();
@@ -207,7 +208,9 @@ export function init(context) {
function pan(d) {
return function() {
d3.event.preventDefault();
if (!context.inIntro()) context.pan(d);
if (!context.inIntro()) {
context.pan(d, 100);
}
};
}