From 260cf9ee0e43b80566ddce957e9df5bf4db5fbc6 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Thu, 18 Apr 2013 13:14:19 -0400 Subject: [PATCH] Fix for mercator->orthographic changes --- panels/map2/module.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panels/map2/module.js b/panels/map2/module.js index e494004ac39..dc7a48ff8f9 100644 --- a/panels/map2/module.js +++ b/panels/map2/module.js @@ -349,6 +349,13 @@ angular.module('kibana.map2', []) var path = d3.geo.path() .projection(scope.projection); + + //Special fix for when the user changes from mercator -> orthographic + //The globe won't redraw automatically, we need to force it + if (scope.panel.display.data.type === 'orthographic') { + scope.svg.selectAll("path").attr("d", path); + } + console.log(scope.data); //Geocoded points are decoded into lonlat