]> git.openstreetmap.org Git - rails.git/commitdiff
Different feature highlight color for browse pages
authorAaron Lidman <aaronlidman@gmail.com>
Wed, 13 Nov 2013 21:17:38 +0000 (13:17 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Wed, 13 Nov 2013 21:17:45 +0000 (13:17 -0800)
app/assets/javascripts/index.js

index 5724eaae8c2cdde831d4ca4dcd42c5cf91a0e1ab..e83b4994766726d0c3557906facb887728e6a8f5 100644 (file)
@@ -231,7 +231,17 @@ $(document).ready(function () {
     page.load = function(path, type, id) {
       if (OSM.STATUS === 'api_offline' || OSM.STATUS === 'database_offline') return;
 
-      map.addObject({type: type, id: parseInt(id)}, {zoom: window.location.hash == ""});
+      map.addObject({type: type, id: parseInt(id)},
+        {
+          zoom: window.location.hash == "",
+          style: {
+            color: "#FF6200",
+            weight: 4,
+            opacity: 1,
+            fillOpacity: 0.5
+          }
+        }
+      );
     };
 
     page.unload = function() {