Skip to content

Commit

Permalink
fixing pan
Browse files Browse the repository at this point in the history
  • Loading branch information
chelm committed Feb 21, 2014
1 parent 50be392 commit 11448f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions d3Layer.js
Expand Up @@ -57,6 +57,7 @@ define([
_bind: function(map){
this._connects = [];
this._connects.push( dojo.connect( this._map, "onZoomEnd", this, this._reset ) );
this._connects.push( dojo.connect( this._map, "onPanEnd", this, this._reset ) );
},

_project: function(x){
Expand Down
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -107,7 +107,7 @@
}
});

map.on("zoomEnd", function(){
map.on("zoom-end", function(){
setTimeout(function(){
d3.selectAll('.park')[0].forEach(function( park ){
var root = d3.select('#'+park.id+'_root');
Expand All @@ -122,7 +122,7 @@
},10);
});

map.on("panEnd", function(){
map.on("pan-end", function(){
setTimeout(function(){
d3.selectAll('.park')[0].forEach(function( park ){
var root = d3.select('#'+park.id+'_root');
Expand Down

0 comments on commit 11448f7

Please sign in to comment.