mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move dropdown options into scope so that it appears on panel creation
This commit is contained in:
parent
d693457ef3
commit
869149892b
@ -16,7 +16,17 @@ angular.module('kibana.map2', [])
|
||||
scale:-1,
|
||||
data: {
|
||||
samples: 1000,
|
||||
type: "mercator"
|
||||
type: "mercator",
|
||||
dropdown:[
|
||||
{
|
||||
"text": "Mercator (Flat)",
|
||||
id: "mercator"
|
||||
},
|
||||
{
|
||||
text: "Orthographic (Sphere)",
|
||||
id: "orthographic"
|
||||
}
|
||||
]
|
||||
},
|
||||
geopoints: {
|
||||
enabled: false,
|
||||
@ -187,24 +197,6 @@ angular.module('kibana.map2', [])
|
||||
dr.worldData = null;
|
||||
dr.worldNames = null;
|
||||
|
||||
//These are various options that should not be cached in scope.panel
|
||||
dr.options = {
|
||||
|
||||
data: {
|
||||
dropdown:[
|
||||
{
|
||||
"text": "Mercator (Flat)",
|
||||
id: "mercator"
|
||||
},
|
||||
{
|
||||
text: "Orthographic (Sphere)",
|
||||
id: "orthographic"
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Initialize the panels if new, or render existing panels
|
||||
*/
|
||||
@ -403,7 +395,7 @@ angular.module('kibana.map2', [])
|
||||
//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') {
|
||||
//dr.svg.selectAll("path").attr("d", dr.path);
|
||||
dr.svg.selectAll("path").attr("d", dr.path);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user