[OpenLayers-Commits] r11415 - sandbox/crschmidt/pan-tap/tests/manual
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 08:40:02 EST 2011
Author: crschmidt
Date: 2011-02-24 05:40:02 -0800 (Thu, 24 Feb 2011)
New Revision: 11415
Modified:
sandbox/crschmidt/pan-tap/tests/manual/click-tap.html
Log:
Change the click-tap acceptance test to be based around an (empty) map.
Modified: sandbox/crschmidt/pan-tap/tests/manual/click-tap.html
===================================================================
--- sandbox/crschmidt/pan-tap/tests/manual/click-tap.html 2011-02-24 13:39:56 UTC (rev 11414)
+++ sandbox/crschmidt/pan-tap/tests/manual/click-tap.html 2011-02-24 13:40:02 UTC (rev 11415)
@@ -1,11 +1,16 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <script src="../OLLoader.js"></script>
+ <script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript">
function init(){
- var handler = new OpenLayers.Handler.Click({},
- {'click': function() { alert(handler.tap); }},
- {map: {events: new OpenLayers.Events(null, document.getElementById("foo"))}});
+ var map = new OpenLayers.Map("foo", {
+ 'layers': [new OpenLayers.Layer('',{isBaseLayer:true})],
+ 'center': new OpenLayers.LonLat(0,0),
+ 'zoom': 0,
+ 'controls': []});
+
+
+ var handler = new OpenLayers.Handler.Click({}, {'click': function() { alert(handler.tap); }}, {map:map});
handler.activate();
}
</script>
More information about the Commits
mailing list