Commit 260cf9ee by Zachary Tong

Fix for mercator->orthographic changes

parent 62de4a49
...@@ -349,6 +349,13 @@ angular.module('kibana.map2', []) ...@@ -349,6 +349,13 @@ angular.module('kibana.map2', [])
var path = d3.geo.path() var path = d3.geo.path()
.projection(scope.projection); .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); console.log(scope.data);
//Geocoded points are decoded into lonlat //Geocoded points are decoded into lonlat
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment