[OpenLayers-Commits] r11429 - sandbox/camptocamp/mobile/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Feb 24 11:15:40 EST 2011


Author: igorti
Date: 2011-02-24 08:15:40 -0800 (Thu, 24 Feb 2011)
New Revision: 11429

Modified:
   sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.js
   sandbox/camptocamp/mobile/openlayers/examples/style.mobile-jq.css
Log:
Changed icon displayed for Vector layer

Modified: sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.js
===================================================================
--- sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.js	2011-02-24 16:11:40 UTC (rev 11428)
+++ sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.js	2011-02-24 16:15:40 UTC (rev 11429)
@@ -43,9 +43,16 @@
         }
     });
 
+	var sprintersLayer = new OpenLayers.Layer.Vector("Sprinters", {
+        styleMap: new OpenLayers.StyleMap({
+            externalGraphic : "img/mobile-loc.png",
+			graphicOpacity : 1.0,
+			graphicWith:16,
+			graphicHeight:26
+        })
+    });
+	
 	var sprinters = getFeatures();
-	
-	var sprintersLayer = new OpenLayers.Layer.Vector("Sprinters");
 	sprintersLayer.addFeatures(sprinters);
 	
 	map.addLayer(sprintersLayer);

Modified: sandbox/camptocamp/mobile/openlayers/examples/style.mobile-jq.css
===================================================================
--- sandbox/camptocamp/mobile/openlayers/examples/style.mobile-jq.css	2011-02-24 16:11:40 UTC (rev 11428)
+++ sandbox/camptocamp/mobile/openlayers/examples/style.mobile-jq.css	2011-02-24 16:15:40 UTC (rev 11429)
@@ -50,3 +50,9 @@
 .ui-content .ui-listview-inset, #search_results {
     margin: 1em;
 }
+.ui-content .ui-listview {
+    margin: 0px;
+}
+#details-list li{
+	padding:15px 10px;
+}
\ No newline at end of file



More information about the Commits mailing list