From 296da6f4c1a14cdccee8d3f51e192143476d5962 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 3 Mar 2014 13:44:32 +0100 Subject: [PATCH] Updating google-map example to use pointer events --- examples/google-map.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/google-map.js b/examples/google-map.js index 2d5d2b1dc5..b025a2f86c 100644 --- a/examples/google-map.js +++ b/examples/google-map.js @@ -3,7 +3,7 @@ goog.require('ol.Map'); goog.require('ol.View2D'); goog.require('ol.interaction'); -goog.require('ol.interaction.DragPan'); +goog.require('ol.interaction.Pan'); goog.require('ol.layer.Vector'); goog.require('ol.proj'); goog.require('ol.source.GeoJSON'); @@ -51,9 +51,9 @@ var map = new ol.Map({ layers: [vector], interactions: ol.interaction.defaults({ altShiftDragRotate: false, - dragPan: false, - touchRotate: false - }).extend([new ol.interaction.DragPan({kinetic: false})]), + pan: false, + rotate: false + }).extend([new ol.interaction.Pan({kinetic: false})]), renderer: 'canvas', target: olMapDiv, view: view