From 8def2e0999d17c6d85bfe9b9aab4d9f84dcffc02 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 16 Jan 2013 13:07:30 -0500 Subject: [PATCH] Remove style and references to it --- index.html | 1 - js/id/renderer/style.js | 38 -------------------------------------- test/index.html | 1 - 3 files changed, 40 deletions(-) delete mode 100644 js/id/renderer/style.js diff --git a/index.html b/index.html index 8e86da888..b106c35b7 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,6 @@ - diff --git a/js/id/renderer/style.js b/js/id/renderer/style.js deleted file mode 100644 index 734ce10ca..000000000 --- a/js/id/renderer/style.js +++ /dev/null @@ -1,38 +0,0 @@ -iD.Style = {}; - -// all styling that is done outside of CSS in iD. -// -// Since SVG does not support z-index, we sort roads manually with d3's `sort` -// and the `waystack` fn. -// -// This also chooses kosher CSS classes for ways, and images for points - -iD.Style.highway_stack = { - motorway: 0, - motorway_link: 1, - trunk: 2, - trunk_link: 3, - primary: 4, - primary_link: 5, - secondary: 6, - tertiary: 7, - unclassified: 8, - residential: 9, - service: 10, - footway: 11 -}; - -iD.Style.waystack = function(a, b) { - if (!a || !b) return 0; - if (a.tags.layer !== undefined && b.tags.layer !== undefined) { - return a.tags.layer - b.tags.layer; - } - if (a.tags.bridge) return 1; - if (b.tags.bridge) return -1; - var as = 0, bs = 0; - if (a.tags.highway && b.tags.highway) { - as -= iD.Style.highway_stack[a.tags.highway]; - bs -= iD.Style.highway_stack[b.tags.highway]; - } - return as - bs; -}; diff --git a/test/index.html b/test/index.html index 88b7ff2ea..f8d570f36 100644 --- a/test/index.html +++ b/test/index.html @@ -37,7 +37,6 @@ -