Skip to content

Commit

Permalink
Merge pull request #675 from OpenGeoscience/touch-interactions
Browse files Browse the repository at this point in the history
Handle basic touch interactions
  • Loading branch information
manthey authored Mar 20, 2017
2 parents 27814ce + e317bf9 commit 8501fb8
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 28 deletions.
5 changes: 4 additions & 1 deletion external.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module.exports = {
},
resolve: {
alias: {
d3: 'd3/d3.js'
d3: 'd3/d3.js',
hammerjs: 'hammerjs/hammer.js'
}
},
plugins: [
Expand All @@ -27,6 +28,8 @@ module.exports = {
module: {
loaders: [{
test: require.resolve('d3'), loader: 'expose?d3'
}, {
test: require.resolve('hammerjs'), loader: 'expose?hammerjs'
}]
}
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"url": "https://github.com/OpenGeoscience/geojs"
},
"optionalDependencies": {
"d3": "^3.5.16"
"d3": "^3.5.16",
"hammerjs": "^2.0.8"
},
"devDependencies": {
"body-parser": "^1.15.0",
Expand Down Expand Up @@ -70,6 +71,7 @@
"style-loader": "^0.13.1",
"stylus": "^0.54.5",
"stylus-loader": "^2.4.0",
"touch-emulator": "^1.0.0",
"url-loader": "^0.5.7",
"vgl": "0.3.10",
"webpack": "^1.12.14",
Expand Down
1 change: 1 addition & 0 deletions src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var geo_action = {
select: 'geo_action_select',
unzoomselect: 'geo_action_unzoomselect',
zoom: 'geo_action_zoom',
zoomrotate: 'geo_action_zoom_rotate',
zoomselect: 'geo_action_zoomselect',

// annotation actions
Expand Down
1 change: 1 addition & 0 deletions src/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.geojs-map
position relative
user-select none

.geo-attribution
position absolute
Expand Down
Loading

0 comments on commit 8501fb8

Please sign in to comment.