[OpenLayers-Commits] r11841 - sandbox/cmoullet/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Mar 31 08:33:45 EDT 2011


Author: cmoullet
Date: 2011-03-31 05:33:45 -0700 (Thu, 31 Mar 2011)
New Revision: 11841

Modified:
   sandbox/cmoullet/openlayers/examples/mobile-base.js
   sandbox/cmoullet/openlayers/examples/mobile-jq.js
Log:
Fixes


Modified: sandbox/cmoullet/openlayers/examples/mobile-base.js
===================================================================
--- sandbox/cmoullet/openlayers/examples/mobile-base.js	2011-03-31 12:31:16 UTC (rev 11840)
+++ sandbox/cmoullet/openlayers/examples/mobile-base.js	2011-03-31 12:33:45 UTC (rev 11841)
@@ -24,7 +24,8 @@
     var sprinters = getFeatures();
     sprintersLayer.addFeatures(sprinters);
 
-    var selectControl = new OpenLayers.Control.SelectFeature(sprintersLayer, {autoActivate:true,
+    var selectControl = new OpenLayers.Control.SelectFeature(sprintersLayer, {
+        autoActivate:true,
         onSelect: onSelectFeatureFunction});
 
     var geolocate = new OpenLayers.Control.Geolocate({

Modified: sandbox/cmoullet/openlayers/examples/mobile-jq.js
===================================================================
--- sandbox/cmoullet/openlayers/examples/mobile-jq.js	2011-03-31 12:31:16 UTC (rev 11840)
+++ sandbox/cmoullet/openlayers/examples/mobile-jq.js	2011-03-31 12:33:45 UTC (rev 11841)
@@ -1,4 +1,5 @@
 var selectedFeature = null;
+var sprintersLayer;
 var onSelectFeatureFunction = function(feature) {
    selectedFeature = feature;
    $.mobile.changePage($("#popup"), "pop");



More information about the Commits mailing list