aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorevansiroky <evan.siroky@yahoo.com>2016-06-17 08:46:28 -0700
committerevansiroky <evan.siroky@yahoo.com>2016-06-17 08:46:28 -0700
commit6e45be6ba4f4f86a4074c433758a94b2fe4932c3 (patch)
treef3fd9bd8d80ed80abab2714da4efa8d8352acd51 /index.js
parent5d008130cf67d2c5ef831b4d59fca2ef563aed28 (diff)
downloadtimezone-boundary-builder-6e45be6ba4f4f86a4074c433758a94b2fe4932c3.tar.gz
Add union op, adding 3 more US timezones
Refs #1
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index 1a5a5d5..51d81bd 100644
--- a/index.js
+++ b/index.js
@@ -166,6 +166,8 @@ var makeTimezoneBoundary = function(tzid, callback) {
geom = intersection(geom, taskData)
} else if(task.op === 'difference') {
geom = diff(geom, taskData)
+ } else if(task.op === 'union') {
+ geom = union(geom, taskData)
}
cb()
}, function(err) {