projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d380ce7
)
Different feature highlight color for browse pages
author
Aaron Lidman
<aaronlidman@gmail.com>
Wed, 13 Nov 2013 21:17:38 +0000
(13:17 -0800)
committer
Aaron Lidman
<aaronlidman@gmail.com>
Wed, 13 Nov 2013 21:17:45 +0000
(13:17 -0800)
app/assets/javascripts/index.js
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/index.js
b/app/assets/javascripts/index.js
index 5724eaae8c2cdde831d4ca4dcd42c5cf91a0e1ab..e83b4994766726d0c3557906facb887728e6a8f5 100644
(file)
--- a/
app/assets/javascripts/index.js
+++ b/
app/assets/javascripts/index.js
@@
-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() {