I am using highcharts an it is not showing in IE but well in chrome. I have created a jsfiddle: http://jsfiddle.net/starcraft04/px6dmvnx/
jQuery(document).ready(function () {
Highcharts.setOptions({
lang: {
loading: 'Loading...',
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
exportButtonTitle: 'Export',
printButtonTitle: 'Print',
rangeSelectorFrom: 'From',
rangeSelectorTo: 'To',
rangeSelectorZoom: 'Zoom',
downloadPNG: 'Download PNG',
downloadJPEG: 'Download JPEG',
downloadPDF: 'Download PDF',
downloadSVG: 'Download SVG',
resetZoom: 'Reset',
resetZoomTitle: 'Reset',
thousandsSep: '',
decimalPoint: ','
},
chart: {
borderWidth: 0,
plotShadow: true,
plotBorderWidth: 1
}
});
var options = {};
options.series = [];
options.xAxis = [];
options.yAxis = [];
options.chart = {
zoomType: 'x',
renderTo: 'graph',
marginRight: 50,
marginBottom: 50
};
options.title = {
text: 'My Graph',
x: -20 //center
};
options.subtitle = {
text: 'Test',
x: -20
};
options.legend = {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -10,
y: 18,
borderWidth: 0
};
options.tooltip = {
shared: false,
borderRadius: 10,
borderWidth: 1
}
options.xAxis[0] = {
type: 'datetime',
tickWidth: 1,
gridLineWidth: 0,
gridLineColor: '#cdcdcd',
tickPixelInterval: 70,
opposite: false
};
options.yAxis[0] = {
tickWidth: 0,
gridLineWidth: 1,
gridLineColor: '#cdcdcd',
tickPixelInterval: 100,
labels: {
formatter: function () {
return this.value;
},
style: {
color: '#0080c0'
}
},
title: {
text: 'test',
style: {
color: '#0080c0'
}
},
opposite: false
};
options.series[0] = {
name: 'test',
color: '#0080c0',
xAxis: 0,
yAxis: 0,
type: 'spline',
data: [
[Date.parse('2014-09-07 00:00:03 UTC'), parseFloat('42121000')],
[Date.parse('2014-09-07 01:00:02 UTC'), parseFloat('42156000')],
[Date.parse('2014-09-07 02:00:03 UTC'), parseFloat('42186000')],
[Date.parse('2014-09-07 03:00:02 UTC'), parseFloat('42213000')],
[Date.parse('2014-09-07 04:00:03 UTC'), parseFloat('42243000')],
[Date.parse('2014-09-07 05:00:03 UTC'), parseFloat('42269000')],
[Date.parse('2014-09-07 06:00:03 UTC'), parseFloat('42297000')],
[Date.parse('2014-09-07 07:00:03 UTC'), parseFloat('42323000')],
[Date.parse('2014-09-07 08:00:02 UTC'), parseFloat('42346000')],
[Date.parse('2014-09-07 09:00:03 UTC'), parseFloat('42374000')],
[Date.parse('2014-09-07 10:00:02 UTC'), parseFloat('42404000')],
[Date.parse('2014-09-07 11:00:02 UTC'), parseFloat('42439000')],
[Date.parse('2014-09-07 12:00:02 UTC'), parseFloat('42539000')],
[Date.parse('2014-09-07 13:00:03 UTC'), parseFloat('42585000')],
[Date.parse('2014-09-07 14:00:02 UTC'), parseFloat('42626000')],
[Date.parse('2014-09-07 15:00:02 UTC'), parseFloat('42672000')],
[Date.parse('2014-09-07 16:00:03 UTC'), parseFloat('42707000')],
[Date.parse('2014-09-07 17:00:02 UTC'), parseFloat('42733000')],
[Date.parse('2014-09-07 18:00:02 UTC'), parseFloat('42755000')],
[Date.parse('2014-09-07 19:00:03 UTC'), parseFloat('42779000')],
[Date.parse('2014-09-07 20:00:03 UTC'), parseFloat('42802000')],
[Date.parse('2014-09-07 21:00:03 UTC'), parseFloat('42832000')],
[Date.parse('2014-09-07 22:00:03 UTC'), parseFloat('42871000')],
[Date.parse('2014-09-07 23:00:03 UTC'), parseFloat('42916000')],
[Date.parse('2014-09-08 00:00:02 UTC'), parseFloat('42952000')],
[Date.parse('2014-09-08 01:00:02 UTC'), parseFloat('42988000')],
[Date.parse('2014-09-08 02:00:03 UTC'), parseFloat('43015000')],
[Date.parse('2014-09-08 03:00:03 UTC'), parseFloat('43041000')],
[Date.parse('2014-09-08 04:00:03 UTC'), parseFloat('43069000')],
[Date.parse('2014-09-08 05:00:02 UTC'), parseFloat('43096000')],
[Date.parse('2014-09-08 06:00:02 UTC'), parseFloat('43124000')],
[Date.parse('2014-09-08 07:00:02 UTC'), parseFloat('43149000')],
[Date.parse('2014-09-08 08:00:03 UTC'), parseFloat('43176000')],
[Date.parse('2014-09-08 09:00:02 UTC'), parseFloat('43321000')],
[Date.parse('2014-09-08 10:00:03 UTC'), parseFloat('43552000')],
[Date.parse('2014-09-08 11:00:02 UTC'), parseFloat('43783000')],
[Date.parse('2014-09-08 12:00:02 UTC'), parseFloat('44014000')],
[Date.parse('2014-09-08 13:00:03 UTC'), parseFloat('44248000')],
[Date.parse('2014-09-08 14:00:02 UTC'), parseFloat('44479000')],
[Date.parse('2014-09-08 15:00:03 UTC'), parseFloat('44710000')],
[Date.parse('2014-09-08 16:00:02 UTC'), parseFloat('44939000')],
[Date.parse('2014-09-08 17:00:02 UTC'), parseFloat('45168000')],
[Date.parse('2014-09-08 18:00:02 UTC'), parseFloat('45398000')],
[Date.parse('2014-09-08 19:00:03 UTC'), parseFloat('45630000')],
[Date.parse('2014-09-08 20:00:02 UTC'), parseFloat('45863000')],
[Date.parse('2014-09-08 21:00:02 UTC'), parseFloat('46099000')],
[Date.parse('2014-09-08 22:00:03 UTC'), parseFloat('46353000')],
[Date.parse('2014-09-08 23:00:03 UTC'), parseFloat('46464000')],
[Date.parse('2014-09-09 00:00:02 UTC'), parseFloat('46516000')],
[Date.parse('2014-09-09 01:00:02 UTC'), parseFloat('46560000')],
[Date.parse('2014-09-09 02:00:02 UTC'), parseFloat('46592000')],
[Date.parse('2014-09-09 03:00:03 UTC'), parseFloat('46620000')],
[Date.parse('2014-09-09 04:00:03 UTC'), parseFloat('46647000')],
[Date.parse('2014-09-09 05:00:02 UTC'), parseFloat('46674000')],
[Date.parse('2014-09-09 06:00:02 UTC'), parseFloat('46701000')],
[Date.parse('2014-09-09 07:00:03 UTC'), parseFloat('46726000')],
[Date.parse('2014-09-09 08:00:03 UTC'), parseFloat('46765000')],
[Date.parse('2014-09-09 09:00:02 UTC'), parseFloat('46889000')],
[Date.parse('2014-09-09 10:00:03 UTC'), parseFloat('47122000')],
[Date.parse('2014-09-09 11:00:03 UTC'), parseFloat('47366000')],
[Date.parse('2014-09-09 12:00:02 UTC'), parseFloat('47625000')],
[Date.parse('2014-09-09 13:00:02 UTC'), parseFloat('47880000')],
[Date.parse('2014-09-09 14:00:02 UTC'), parseFloat('48123000')],
[Date.parse('2014-09-09 15:00:02 UTC'), parseFloat('48377000')],
[Date.parse('2014-09-09 16:00:02 UTC'), parseFloat('48621000')],
[Date.parse('2014-09-09 17:00:03 UTC'), parseFloat('48862000')],
[Date.parse('2014-09-09 18:00:02 UTC'), parseFloat('49087000')],
[Date.parse('2014-09-09 19:00:02 UTC'), parseFloat('49324000')],
[Date.parse('2014-09-09 20:00:02 UTC'), parseFloat('49555000')],
[Date.parse('2014-09-09 21:00:02 UTC'), parseFloat('49792000')],
[Date.parse('2014-09-09 22:00:03 UTC'), parseFloat('50038000')],
[Date.parse('2014-09-09 23:00:02 UTC'), parseFloat('50145000')],
[Date.parse('2014-09-10 00:00:02 UTC'), parseFloat('50186000')],
[Date.parse('2014-09-10 01:00:02 UTC'), parseFloat('50222000')],
[Date.parse('2014-09-10 02:00:02 UTC'), parseFloat('50250000')],
[Date.parse('2014-09-10 03:00:02 UTC'), parseFloat('50275000')],
[Date.parse('2014-09-10 04:00:02 UTC'), parseFloat('50302000')],
[Date.parse('2014-09-10 05:00:02 UTC'), parseFloat('50326000')],
[Date.parse('2014-09-10 06:00:02 UTC'), parseFloat('50355000')],
[Date.parse('2014-09-10 07:00:02 UTC'), parseFloat('50380000')],
[Date.parse('2014-09-10 08:00:02 UTC'), parseFloat('50406000')],
[Date.parse('2014-09-10 09:00:02 UTC'), parseFloat('50544000')],
[Date.parse('2014-09-10 10:00:02 UTC'), parseFloat('50774000')],
[Date.parse('2014-09-10 11:00:03 UTC'), parseFloat('51002000')],
[Date.parse('2014-09-10 12:00:02 UTC'), parseFloat('51232000')],
[Date.parse('2014-09-10 13:00:02 UTC'), parseFloat('51466000')],
[Date.parse('2014-09-10 14:00:02 UTC'), parseFloat('51546000')],
[Date.parse('2014-09-10 15:00:03 UTC'), parseFloat('51587000')],
[Date.parse('2014-09-10 16:00:02 UTC'), parseFloat('51642000')],
[Date.parse('2014-09-10 17:00:03 UTC'), parseFloat('51780000')],
[Date.parse('2014-09-10 18:00:02 UTC'), parseFloat('52038000')],
[Date.parse('2014-09-10 19:00:02 UTC'), parseFloat('52292000')],
[Date.parse('2014-09-10 20:00:02 UTC'), parseFloat('52529000')],
[Date.parse('2014-09-10 21:00:02 UTC'), parseFloat('52772000')],
[Date.parse('2014-09-10 22:00:02 UTC'), parseFloat('53016000')],
[Date.parse('2014-09-10 23:00:02 UTC'), parseFloat('53078000')],
[Date.parse('2014-09-11 00:00:02 UTC'), parseFloat('53114000')],
[Date.parse('2014-09-11 01:00:02 UTC'), parseFloat('53148000')],
[Date.parse('2014-09-11 02:00:02 UTC'), parseFloat('53176000')],
[Date.parse('2014-09-11 03:00:02 UTC'), parseFloat('53203000')],
[Date.parse('2014-09-11 04:00:03 UTC'), parseFloat('53229000')],
[Date.parse('2014-09-11 05:00:02 UTC'), parseFloat('53255000')],
[Date.parse('2014-09-11 06:00:02 UTC'), parseFloat('53283000')],
[Date.parse('2014-09-11 07:00:02 UTC'), parseFloat('53309000')],
[Date.parse('2014-09-11 08:00:02 UTC'), parseFloat('53342000')],
[Date.parse('2014-09-11 09:00:02 UTC'), parseFloat('53486000')],
[Date.parse('2014-09-11 10:00:02 UTC'), parseFloat('53714000')],
[Date.parse('2014-09-11 11:00:03 UTC'), parseFloat('53944000')],
[Date.parse('2014-09-11 12:00:02 UTC'), parseFloat('54173000')],
[Date.parse('2014-09-11 13:00:02 UTC'), parseFloat('54403000')],
[Date.parse('2014-09-11 14:00:02 UTC'), parseFloat('54633000')],
[Date.parse('2014-09-11 15:00:02 UTC'), parseFloat('54863000')],
[Date.parse('2014-09-11 16:00:02 UTC'), parseFloat('55094000')],
[Date.parse('2014-09-11 17:00:02 UTC'), parseFloat('55323000')],
[Date.parse('2014-09-11 18:00:03 UTC'), parseFloat('55553000')],
[Date.parse('2014-09-11 19:00:03 UTC'), parseFloat('55782000')],
[Date.parse('2014-09-11 20:00:03 UTC'), parseFloat('56018000')],
[Date.parse('2014-09-11 21:00:02 UTC'), parseFloat('56265000')],
[Date.parse('2014-09-11 22:00:02 UTC'), parseFloat('56522000')],
[Date.parse('2014-09-11 23:00:02 UTC'), parseFloat('56635000')],
[Date.parse('2014-09-12 00:00:03 UTC'), parseFloat('56685000')],
[Date.parse('2014-09-12 01:00:02 UTC'), parseFloat('56729000')],
[Date.parse('2014-09-12 02:00:02 UTC'), parseFloat('56766000')],
[Date.parse('2014-09-12 03:00:02 UTC'), parseFloat('56799000')],
[Date.parse('2014-09-12 04:00:02 UTC'), parseFloat('56833000')],
[Date.parse('2014-09-12 05:00:03 UTC'), parseFloat('56866000')],
[Date.parse('2014-09-12 06:00:02 UTC'), parseFloat('56902000')],
[Date.parse('2014-09-12 07:00:02 UTC'), parseFloat('56935000')],
[Date.parse('2014-09-12 08:00:02 UTC'), parseFloat('56964000')],
[Date.parse('2014-09-12 09:00:03 UTC'), parseFloat('57107000')],
[Date.parse('2014-09-12 10:00:02 UTC'), parseFloat('57337000')],
[Date.parse('2014-09-12 11:00:02 UTC'), parseFloat('57581000')],
[Date.parse('2014-09-12 12:00:03 UTC'), parseFloat('57824000')],
[Date.parse('2014-09-12 13:00:02 UTC'), parseFloat('58063000')],
[Date.parse('2014-09-12 14:00:03 UTC'), parseFloat('58308000')],
[Date.parse('2014-09-12 15:00:02 UTC'), parseFloat('58547000')],
[Date.parse('2014-09-12 16:00:02 UTC'), parseFloat('58787000')],
[Date.parse('2014-09-12 17:00:02 UTC'), parseFloat('59020000')],
[Date.parse('2014-09-12 18:00:02 UTC'), parseFloat('59247000')],
[Date.parse('2014-09-12 19:00:02 UTC'), parseFloat('59491000')],
[Date.parse('2014-09-12 20:00:03 UTC'), parseFloat('59744000')],
[Date.parse('2014-09-12 21:00:03 UTC'), parseFloat('59825000')],
[Date.parse('2014-09-12 22:00:02 UTC'), parseFloat('59902000')],
[Date.parse('2014-09-12 23:00:03 UTC'), parseFloat('59984000')],
[Date.parse('2014-09-13 00:00:02 UTC'), parseFloat('60063000')],
[Date.parse('2014-09-13 01:00:02 UTC'), parseFloat('60126000')],
[Date.parse('2014-09-13 02:00:02 UTC'), parseFloat('60155000')],
[Date.parse('2014-09-13 03:00:02 UTC'), parseFloat('60182000')],
[Date.parse('2014-09-13 04:00:02 UTC'), parseFloat('60207000')],
[Date.parse('2014-09-13 05:00:02 UTC'), parseFloat('60233000')],
[Date.parse('2014-09-13 06:00:02 UTC'), parseFloat('60260000')],
[Date.parse('2014-09-13 07:00:02 UTC'), parseFloat('60287000')],
[Date.parse('2014-09-13 08:00:02 UTC'), parseFloat('60310000')],
[Date.parse('2014-09-13 09:00:02 UTC'), parseFloat('60335000')],
[Date.parse('2014-09-13 10:00:03 UTC'), parseFloat('60499000')],
[Date.parse('2014-09-13 11:00:03 UTC'), parseFloat('60733000')],
[Date.parse('2014-09-13 12:00:03 UTC'), parseFloat('60965000')],
[Date.parse('2014-09-13 13:00:03 UTC'), parseFloat('61192000')],
[Date.parse('2014-09-13 14:00:02 UTC'), parseFloat('61420000')],
[Date.parse('2014-09-13 15:00:03 UTC'), parseFloat('61655000')],
[Date.parse('2014-09-13 16:00:03 UTC'), parseFloat('61882000')],
[Date.parse('2014-09-13 17:00:03 UTC'), parseFloat('62109000')],
[Date.parse('2014-09-13 18:00:02 UTC'), parseFloat('62337000')],
[Date.parse('2014-09-13 19:00:02 UTC'), parseFloat('62399000')],
[Date.parse('2014-09-13 20:00:03 UTC'), parseFloat('62426000')],
[Date.parse('2014-09-13 21:00:02 UTC'), parseFloat('62450000')],
[Date.parse('2014-09-13 22:00:02 UTC'), parseFloat('62479000')],
[Date.parse('2014-09-13 23:00:02 UTC'), parseFloat('62513000')],
[Date.parse('2014-09-14 00:00:03 UTC'), parseFloat('62540000')],
[Date.parse('2014-09-14 01:00:02 UTC'), parseFloat('62574000')],
[Date.parse('2014-09-14 02:00:02 UTC'), parseFloat('62604000')],
[Date.parse('2014-09-14 03:00:02 UTC'), parseFloat('62633000')],
[Date.parse('2014-09-14 04:00:02 UTC'), parseFloat('62660000')],
[Date.parse('2014-09-14 05:00:02 UTC'), parseFloat('62687000')],
[Date.parse('2014-09-14 06:00:02 UTC'), parseFloat('62715000')],
[Date.parse('2014-09-14 07:00:02 UTC'), parseFloat('62741000')],
[Date.parse('2014-09-14 08:00:02 UTC'), parseFloat('62762000')],
[Date.parse('2014-09-14 09:00:03 UTC'), parseFloat('62785000')],
[Date.parse('2014-09-14 10:00:02 UTC'), parseFloat('62812000')],
[Date.parse('2014-09-14 11:00:02 UTC'), parseFloat('63029000')],
[Date.parse('2014-09-14 12:00:03 UTC'), parseFloat('63261000')],
[Date.parse('2014-09-14 13:00:02 UTC'), parseFloat('63340000')],
[Date.parse('2014-09-14 14:00:03 UTC'), parseFloat('63376000')],
[Date.parse('2014-09-14 15:00:02 UTC'), parseFloat('63422000')],
[Date.parse('2014-09-14 16:00:02 UTC'), parseFloat('63457000')],
[Date.parse('2014-09-14 17:00:02 UTC'), parseFloat('63495000')],
[Date.parse('2014-09-14 18:00:02 UTC'), parseFloat('63720000')],
[Date.parse('2014-09-14 19:00:03 UTC'), parseFloat('63951000')],
[Date.parse('2014-09-14 20:00:03 UTC'), parseFloat('64172000')],
[Date.parse('2014-09-14 21:00:03 UTC'), parseFloat('64409000')],
[Date.parse('2014-09-14 22:00:02 UTC'), parseFloat('64656000')],
[Date.parse('2014-09-14 23:00:02 UTC'), parseFloat('64722000')],
[Date.parse('2014-09-15 00:00:02 UTC'), parseFloat('64758000')],
[Date.parse('2014-09-15 01:00:03 UTC'), parseFloat('64789000')],
[Date.parse('2014-09-15 02:00:02 UTC'), parseFloat('64815000')],
[Date.parse('2014-09-15 03:00:02 UTC'), parseFloat('64840000')],
[Date.parse('2014-09-15 04:00:02 UTC'), parseFloat('64866000')],
[Date.parse('2014-09-15 05:00:03 UTC'), parseFloat('64892000')],
[Date.parse('2014-09-15 06:00:02 UTC'), parseFloat('64919000')],
[Date.parse('2014-09-15 07:00:03 UTC'), parseFloat('64943000')],
[Date.parse('2014-09-15 08:00:02 UTC'), parseFloat('64967000')],
[Date.parse('2014-09-15 09:00:02 UTC'), parseFloat('65111000')],
[Date.parse('2014-09-15 10:00:02 UTC'), parseFloat('65339000')],
[Date.parse('2014-09-15 11:00:03 UTC'), parseFloat('65569000')],
[Date.parse('2014-09-15 12:00:02 UTC'), parseFloat('65809000')],
[Date.parse('2014-09-15 13:00:02 UTC'), parseFloat('66048000')],
[Date.parse('2014-09-15 14:00:03 UTC'), parseFloat('66282000')],
[Date.parse('2014-09-15 15:00:02 UTC'), parseFloat('66518000')],
[Date.parse('2014-09-15 16:00:02 UTC'), parseFloat('66747000')],
[Date.parse('2014-09-15 17:00:02 UTC'), parseFloat('66972000')],
[Date.parse('2014-09-15 18:00:02 UTC'), parseFloat('67206000')],
[Date.parse('2014-09-15 19:00:02 UTC'), parseFloat('67433000')],
[Date.parse('2014-09-15 20:00:02 UTC'), parseFloat('67664000')],
[Date.parse('2014-09-15 21:00:02 UTC'), parseFloat('67923000')],
[Date.parse('2014-09-15 22:00:02 UTC'), parseFloat('68179000')],
[Date.parse('2014-09-15 23:00:02 UTC'), parseFloat('68282000')],
[Date.parse('2014-09-16 00:00:02 UTC'), parseFloat('68324000')],
[Date.parse('2014-09-16 01:00:02 UTC'), parseFloat('68365000')],
[Date.parse('2014-09-16 02:00:03 UTC'), parseFloat('68404000')],
[Date.parse('2014-09-16 03:00:03 UTC'), parseFloat('68436000')],
[Date.parse('2014-09-16 04:00:03 UTC'), parseFloat('68461000')],
[Date.parse('2014-09-16 05:00:02 UTC'), parseFloat('68487000')],
[Date.parse('2014-09-16 06:00:02 UTC'), parseFloat('68513000')],
[Date.parse('2014-09-16 07:00:02 UTC'), parseFloat('68541000')],
[Date.parse('2014-09-16 08:00:02 UTC'), parseFloat('68576000')],
[Date.parse('2014-09-16 09:00:02 UTC'), parseFloat('68719000')],
[Date.parse('2014-09-16 10:00:02 UTC'), parseFloat('68946000')]
]
};
var chart = new Highcharts.Chart(options);
});
And as you can see, it shows up pretty well but when I have the same code in IE, it doesn't render. I saw some people saying that it may be caused by some commas but I can't find any.
I have opened this fiddle in IE and I have the same issue, it doesn't print the line :(.
Please help,
Thanks.
Problem is in IE and Date.parse http://jsfiddle.net/px6dmvnx/5/.
$(document).ready(function () {
Highcharts.setOptions({
lang: {
loading: 'Loading...',
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
exportButtonTitle: 'Export',
printButtonTitle: 'Print',
rangeSelectorFrom: 'From',
rangeSelectorTo: 'To',
rangeSelectorZoom: 'Zoom',
downloadPNG: 'Download PNG',
downloadJPEG: 'Download JPEG',
downloadPDF: 'Download PDF',
downloadSVG: 'Download SVG',
resetZoom: 'Reset',
resetZoomTitle: 'Reset',
thousandsSep: '',
decimalPoint: ','
},
chart: {
borderWidth: 0,
plotShadow: true,
plotBorderWidth: 1
}
});
var options = {};
options.series = [];
options.xAxis = [];
options.yAxis = [];
options.chart = {
zoomType: 'x',
renderTo: 'graph',
marginRight: 50,
marginBottom: 50
};
options.title = {
text: 'My Graph',
x: -20 //center
};
options.subtitle = {
text: 'Test',
x: -20
};
options.legend = {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -10,
y: 18,
borderWidth: 0
};
options.tooltip = {
shared: false,
borderRadius: 10,
borderWidth: 1
}
options.xAxis[0] = {
type: 'datetime',
tickWidth: 1,
gridLineWidth: 0,
gridLineColor: '#cdcdcd',
tickPixelInterval: 70,
opposite: false
};
options.yAxis[0] = {
tickWidth: 0,
gridLineWidth: 1,
gridLineColor: '#cdcdcd',
tickPixelInterval: 100,
labels: {
formatter: function () {
return this.value;
},
style: {
color: '#0080c0'
}
},
title: {
text: 'test2',
style: {
color: '#0080c0'
}
},
opposite: false
};
options.series[0] = {
name: 'test',
color: '#0080c0',
xAxis: 0,
yAxis: 0,
type: 'spline',
data: [
[123, parseFloat('42186000')] /*,
[Date.parse('2014-09-07 02:00:03 UTC'), parseFloat('42186000')],
[Date.parse('2014-09-07 03:00:02 UTC'), parseFloat('42213000')],
[Date.parse('2014-09-07 04:00:03 UTC'), parseFloat('42243000')],
[Date.parse('2014-09-07 05:00:03 UTC'), parseFloat('42269000')],
[Date.parse('2014-09-07 06:00:03 UTC'), parseFloat('42297000')],
[Date.parse('2014-09-07 07:00:03 UTC'), parseFloat('42323000')],
[Date.parse('2014-09-07 08:00:02 UTC'), parseFloat('42346000')],
[Date.parse('2014-09-07 09:00:03 UTC'), parseFloat('42374000')],
[Date.parse('2014-09-07 10:00:02 UTC'), parseFloat('42404000')],
[Date.parse('2014-09-07 11:00:02 UTC'), parseFloat('42439000')],
[Date.parse('2014-09-07 12:00:02 UTC'), parseFloat('42539000')],
[Date.parse('2014-09-07 13:00:03 UTC'), parseFloat('42585000')],
[Date.parse('2014-09-07 14:00:02 UTC'), parseFloat('42626000')],
[Date.parse('2014-09-07 15:00:02 UTC'), parseFloat('42672000')],
[Date.parse('2014-09-07 16:00:03 UTC'), parseFloat('42707000')],
[Date.parse('2014-09-07 17:00:02 UTC'), parseFloat('42733000')],
[Date.parse('2014-09-07 18:00:02 UTC'), parseFloat('42755000')],
[Date.parse('2014-09-07 19:00:03 UTC'), parseFloat('42779000')],
[Date.parse('2014-09-07 20:00:03 UTC'), parseFloat('42802000')],
[Date.parse('2014-09-07 21:00:03 UTC'), parseFloat('42832000')],
[Date.parse('2014-09-07 22:00:03 UTC'), parseFloat('42871000')],
[Date.parse('2014-09-07 23:00:03 UTC'), parseFloat('42916000')],
[Date.parse('2014-09-08 00:00:02 UTC'), parseFloat('42952000')],
[Date.parse('2014-09-08 01:00:02 UTC'), parseFloat('42988000')],
[Date.parse('2014-09-08 02:00:03 UTC'), parseFloat('43015000')],
[Date.parse('2014-09-08 03:00:03 UTC'), parseFloat('43041000')],
[Date.parse('2014-09-08 04:00:03 UTC'), parseFloat('43069000')],
[Date.parse('2014-09-08 05:00:02 UTC'), parseFloat('43096000')],
[Date.parse('2014-09-08 06:00:02 UTC'), parseFloat('43124000')],
[Date.parse('2014-09-08 07:00:02 UTC'), parseFloat('43149000')],
[Date.parse('2014-09-08 08:00:03 UTC'), parseFloat('43176000')],
[Date.parse('2014-09-08 09:00:02 UTC'), parseFloat('43321000')],
[Date.parse('2014-09-08 10:00:03 UTC'), parseFloat('43552000')],
[Date.parse('2014-09-08 11:00:02 UTC'), parseFloat('43783000')],
[Date.parse('2014-09-08 12:00:02 UTC'), parseFloat('44014000')],
[Date.parse('2014-09-08 13:00:03 UTC'), parseFloat('44248000')],
[Date.parse('2014-09-08 14:00:02 UTC'), parseFloat('44479000')],
[Date.parse('2014-09-08 15:00:03 UTC'), parseFloat('44710000')],
[Date.parse('2014-09-08 16:00:02 UTC'), parseFloat('44939000')],
[Date.parse('2014-09-08 17:00:02 UTC'), parseFloat('45168000')],
[Date.parse('2014-09-08 18:00:02 UTC'), parseFloat('45398000')],
[Date.parse('2014-09-08 19:00:03 UTC'), parseFloat('45630000')],
[Date.parse('2014-09-08 20:00:02 UTC'), parseFloat('45863000')],
[Date.parse('2014-09-08 21:00:02 UTC'), parseFloat('46099000')],
[Date.parse('2014-09-08 22:00:03 UTC'), parseFloat('46353000')],
[Date.parse('2014-09-08 23:00:03 UTC'), parseFloat('46464000')],
[Date.parse('2014-09-09 00:00:02 UTC'), parseFloat('46516000')],
[Date.parse('2014-09-09 01:00:02 UTC'), parseFloat('46560000')],
[Date.parse('2014-09-09 02:00:02 UTC'), parseFloat('46592000')],
[Date.parse('2014-09-09 03:00:03 UTC'), parseFloat('46620000')],
[Date.parse('2014-09-09 04:00:03 UTC'), parseFloat('46647000')],
[Date.parse('2014-09-09 05:00:02 UTC'), parseFloat('46674000')],
[Date.parse('2014-09-09 06:00:02 UTC'), parseFloat('46701000')],
[Date.parse('2014-09-09 07:00:03 UTC'), parseFloat('46726000')],
[Date.parse('2014-09-09 08:00:03 UTC'), parseFloat('46765000')],
[Date.parse('2014-09-09 09:00:02 UTC'), parseFloat('46889000')],
[Date.parse('2014-09-09 10:00:03 UTC'), parseFloat('47122000')],
[Date.parse('2014-09-09 11:00:03 UTC'), parseFloat('47366000')],
[Date.parse('2014-09-09 12:00:02 UTC'), parseFloat('47625000')],
[Date.parse('2014-09-09 13:00:02 UTC'), parseFloat('47880000')],
[Date.parse('2014-09-09 14:00:02 UTC'), parseFloat('48123000')],
[Date.parse('2014-09-09 15:00:02 UTC'), parseFloat('48377000')],
[Date.parse('2014-09-09 16:00:02 UTC'), parseFloat('48621000')],
[Date.parse('2014-09-09 17:00:03 UTC'), parseFloat('48862000')],
[Date.parse('2014-09-09 18:00:02 UTC'), parseFloat('49087000')],
[Date.parse('2014-09-09 19:00:02 UTC'), parseFloat('49324000')],
[Date.parse('2014-09-09 20:00:02 UTC'), parseFloat('49555000')],
[Date.parse('2014-09-09 21:00:02 UTC'), parseFloat('49792000')],
[Date.parse('2014-09-09 22:00:03 UTC'), parseFloat('50038000')],
[Date.parse('2014-09-09 23:00:02 UTC'), parseFloat('50145000')],
[Date.parse('2014-09-10 00:00:02 UTC'), parseFloat('50186000')],
[Date.parse('2014-09-10 01:00:02 UTC'), parseFloat('50222000')],
[Date.parse('2014-09-10 02:00:02 UTC'), parseFloat('50250000')],
[Date.parse('2014-09-10 03:00:02 UTC'), parseFloat('50275000')],
[Date.parse('2014-09-10 04:00:02 UTC'), parseFloat('50302000')],
[Date.parse('2014-09-10 05:00:02 UTC'), parseFloat('50326000')],
[Date.parse('2014-09-10 06:00:02 UTC'), parseFloat('50355000')],
[Date.parse('2014-09-10 07:00:02 UTC'), parseFloat('50380000')],
[Date.parse('2014-09-10 08:00:02 UTC'), parseFloat('50406000')],
[Date.parse('2014-09-10 09:00:02 UTC'), parseFloat('50544000')],
[Date.parse('2014-09-10 10:00:02 UTC'), parseFloat('50774000')],
[Date.parse('2014-09-10 11:00:03 UTC'), parseFloat('51002000')],
[Date.parse('2014-09-10 12:00:02 UTC'), parseFloat('51232000')],
[Date.parse('2014-09-10 13:00:02 UTC'), parseFloat('51466000')],
[Date.parse('2014-09-10 14:00:02 UTC'), parseFloat('51546000')],
[Date.parse('2014-09-10 15:00:03 UTC'), parseFloat('51587000')],
[Date.parse('2014-09-10 16:00:02 UTC'), parseFloat('51642000')],
[Date.parse('2014-09-10 17:00:03 UTC'), parseFloat('51780000')],
[Date.parse('2014-09-10 18:00:02 UTC'), parseFloat('52038000')],
[Date.parse('2014-09-10 19:00:02 UTC'), parseFloat('52292000')],
[Date.parse('2014-09-10 20:00:02 UTC'), parseFloat('52529000')],
[Date.parse('2014-09-10 21:00:02 UTC'), parseFloat('52772000')],
[Date.parse('2014-09-10 22:00:02 UTC'), parseFloat('53016000')],
[Date.parse('2014-09-10 23:00:02 UTC'), parseFloat('53078000')],
[Date.parse('2014-09-11 00:00:02 UTC'), parseFloat('53114000')],
[Date.parse('2014-09-11 01:00:02 UTC'), parseFloat('53148000')],
[Date.parse('2014-09-11 02:00:02 UTC'), parseFloat('53176000')],
[Date.parse('2014-09-11 03:00:02 UTC'), parseFloat('53203000')],
[Date.parse('2014-09-11 04:00:03 UTC'), parseFloat('53229000')],
[Date.parse('2014-09-11 05:00:02 UTC'), parseFloat('53255000')],
[Date.parse('2014-09-11 06:00:02 UTC'), parseFloat('53283000')],
[Date.parse('2014-09-11 07:00:02 UTC'), parseFloat('53309000')],
[Date.parse('2014-09-11 08:00:02 UTC'), parseFloat('53342000')],
[Date.parse('2014-09-11 09:00:02 UTC'), parseFloat('53486000')],
[Date.parse('2014-09-11 10:00:02 UTC'), parseFloat('53714000')],
[Date.parse('2014-09-11 11:00:03 UTC'), parseFloat('53944000')],
[Date.parse('2014-09-11 12:00:02 UTC'), parseFloat('54173000')],
[Date.parse('2014-09-11 13:00:02 UTC'), parseFloat('54403000')],
[Date.parse('2014-09-11 14:00:02 UTC'), parseFloat('54633000')],
[Date.parse('2014-09-11 15:00:02 UTC'), parseFloat('54863000')],
[Date.parse('2014-09-11 16:00:02 UTC'), parseFloat('55094000')],
[Date.parse('2014-09-11 17:00:02 UTC'), parseFloat('55323000')],
[Date.parse('2014-09-11 18:00:03 UTC'), parseFloat('55553000')],
[Date.parse('2014-09-11 19:00:03 UTC'), parseFloat('55782000')],
[Date.parse('2014-09-11 20:00:03 UTC'), parseFloat('56018000')],
[Date.parse('2014-09-11 21:00:02 UTC'), parseFloat('56265000')],
[Date.parse('2014-09-11 22:00:02 UTC'), parseFloat('56522000')],
[Date.parse('2014-09-11 23:00:02 UTC'), parseFloat('56635000')],
[Date.parse('2014-09-12 00:00:03 UTC'), parseFloat('56685000')],
[Date.parse('2014-09-12 01:00:02 UTC'), parseFloat('56729000')],
[Date.parse('2014-09-12 02:00:02 UTC'), parseFloat('56766000')],
[Date.parse('2014-09-12 03:00:02 UTC'), parseFloat('56799000')],
[Date.parse('2014-09-12 04:00:02 UTC'), parseFloat('56833000')],
[Date.parse('2014-09-12 05:00:03 UTC'), parseFloat('56866000')],
[Date.parse('2014-09-12 06:00:02 UTC'), parseFloat('56902000')],
[Date.parse('2014-09-12 07:00:02 UTC'), parseFloat('56935000')],
[Date.parse('2014-09-12 08:00:02 UTC'), parseFloat('56964000')],
[Date.parse('2014-09-12 09:00:03 UTC'), parseFloat('57107000')],
[Date.parse('2014-09-12 10:00:02 UTC'), parseFloat('57337000')],
[Date.parse('2014-09-12 11:00:02 UTC'), parseFloat('57581000')],
[Date.parse('2014-09-12 12:00:03 UTC'), parseFloat('57824000')],
[Date.parse('2014-09-12 13:00:02 UTC'), parseFloat('58063000')],
[Date.parse('2014-09-12 14:00:03 UTC'), parseFloat('58308000')],
[Date.parse('2014-09-12 15:00:02 UTC'), parseFloat('58547000')],
[Date.parse('2014-09-12 16:00:02 UTC'), parseFloat('58787000')],
[Date.parse('2014-09-12 17:00:02 UTC'), parseFloat('59020000')],
[Date.parse('2014-09-12 18:00:02 UTC'), parseFloat('59247000')],
[Date.parse('2014-09-12 19:00:02 UTC'), parseFloat('59491000')],
[Date.parse('2014-09-12 20:00:03 UTC'), parseFloat('59744000')],
[Date.parse('2014-09-12 21:00:03 UTC'), parseFloat('59825000')],
[Date.parse('2014-09-12 22:00:02 UTC'), parseFloat('59902000')],
[Date.parse('2014-09-12 23:00:03 UTC'), parseFloat('59984000')],
[Date.parse('2014-09-13 00:00:02 UTC'), parseFloat('60063000')],
[Date.parse('2014-09-13 01:00:02 UTC'), parseFloat('60126000')],
[Date.parse('2014-09-13 02:00:02 UTC'), parseFloat('60155000')],
[Date.parse('2014-09-13 03:00:02 UTC'), parseFloat('60182000')],
[Date.parse('2014-09-13 04:00:02 UTC'), parseFloat('60207000')],
[Date.parse('2014-09-13 05:00:02 UTC'), parseFloat('60233000')],
[Date.parse('2014-09-13 06:00:02 UTC'), parseFloat('60260000')],
[Date.parse('2014-09-13 07:00:02 UTC'), parseFloat('60287000')],
[Date.parse('2014-09-13 08:00:02 UTC'), parseFloat('60310000')],
[Date.parse('2014-09-13 09:00:02 UTC'), parseFloat('60335000')],
[Date.parse('2014-09-13 10:00:03 UTC'), parseFloat('60499000')],
[Date.parse('2014-09-13 11:00:03 UTC'), parseFloat('60733000')],
[Date.parse('2014-09-13 12:00:03 UTC'), parseFloat('60965000')],
[Date.parse('2014-09-13 13:00:03 UTC'), parseFloat('61192000')],
[Date.parse('2014-09-13 14:00:02 UTC'), parseFloat('61420000')],
[Date.parse('2014-09-13 15:00:03 UTC'), parseFloat('61655000')],
[Date.parse('2014-09-13 16:00:03 UTC'), parseFloat('61882000')],
[Date.parse('2014-09-13 17:00:03 UTC'), parseFloat('62109000')],
[Date.parse('2014-09-13 18:00:02 UTC'), parseFloat('62337000')],
[Date.parse('2014-09-13 19:00:02 UTC'), parseFloat('62399000')],
[Date.parse('2014-09-13 20:00:03 UTC'), parseFloat('62426000')],
[Date.parse('2014-09-13 21:00:02 UTC'), parseFloat('62450000')],
[Date.parse('2014-09-13 22:00:02 UTC'), parseFloat('62479000')],
[Date.parse('2014-09-13 23:00:02 UTC'), parseFloat('62513000')],
[Date.parse('2014-09-14 00:00:03 UTC'), parseFloat('62540000')],
[Date.parse('2014-09-14 01:00:02 UTC'), parseFloat('62574000')],
[Date.parse('2014-09-14 02:00:02 UTC'), parseFloat('62604000')],
[Date.parse('2014-09-14 03:00:02 UTC'), parseFloat('62633000')],
[Date.parse('2014-09-14 04:00:02 UTC'), parseFloat('62660000')],
[Date.parse('2014-09-14 05:00:02 UTC'), parseFloat('62687000')],
[Date.parse('2014-09-14 06:00:02 UTC'), parseFloat('62715000')],
[Date.parse('2014-09-14 07:00:02 UTC'), parseFloat('62741000')],
[Date.parse('2014-09-14 08:00:02 UTC'), parseFloat('62762000')],
[Date.parse('2014-09-14 09:00:03 UTC'), parseFloat('62785000')],
[Date.parse('2014-09-14 10:00:02 UTC'), parseFloat('62812000')],
[Date.parse('2014-09-14 11:00:02 UTC'), parseFloat('63029000')],
[Date.parse('2014-09-14 12:00:03 UTC'), parseFloat('63261000')],
[Date.parse('2014-09-14 13:00:02 UTC'), parseFloat('63340000')],
[Date.parse('2014-09-14 14:00:03 UTC'), parseFloat('63376000')],
[Date.parse('2014-09-14 15:00:02 UTC'), parseFloat('63422000')],
[Date.parse('2014-09-14 16:00:02 UTC'), parseFloat('63457000')],
[Date.parse('2014-09-14 17:00:02 UTC'), parseFloat('63495000')],
[Date.parse('2014-09-14 18:00:02 UTC'), parseFloat('63720000')],
[Date.parse('2014-09-14 19:00:03 UTC'), parseFloat('63951000')],
[Date.parse('2014-09-14 20:00:03 UTC'), parseFloat('64172000')],
[Date.parse('2014-09-14 21:00:03 UTC'), parseFloat('64409000')],
[Date.parse('2014-09-14 22:00:02 UTC'), parseFloat('64656000')],
[Date.parse('2014-09-14 23:00:02 UTC'), parseFloat('64722000')],
[Date.parse('2014-09-15 00:00:02 UTC'), parseFloat('64758000')],
[Date.parse('2014-09-15 01:00:03 UTC'), parseFloat('64789000')],
[Date.parse('2014-09-15 02:00:02 UTC'), parseFloat('64815000')],
[Date.parse('2014-09-15 03:00:02 UTC'), parseFloat('64840000')],
[Date.parse('2014-09-15 04:00:02 UTC'), parseFloat('64866000')],
[Date.parse('2014-09-15 05:00:03 UTC'), parseFloat('64892000')],
[Date.parse('2014-09-15 06:00:02 UTC'), parseFloat('64919000')],
[Date.parse('2014-09-15 07:00:03 UTC'), parseFloat('64943000')],
[Date.parse('2014-09-15 08:00:02 UTC'), parseFloat('64967000')],
[Date.parse('2014-09-15 09:00:02 UTC'), parseFloat('65111000')],
[Date.parse('2014-09-15 10:00:02 UTC'), parseFloat('65339000')],
[Date.parse('2014-09-15 11:00:03 UTC'), parseFloat('65569000')],
[Date.parse('2014-09-15 12:00:02 UTC'), parseFloat('65809000')],
[Date.parse('2014-09-15 13:00:02 UTC'), parseFloat('66048000')],
[Date.parse('2014-09-15 14:00:03 UTC'), parseFloat('66282000')],
[Date.parse('2014-09-15 15:00:02 UTC'), parseFloat('66518000')],
[Date.parse('2014-09-15 16:00:02 UTC'), parseFloat('66747000')],
[Date.parse('2014-09-15 17:00:02 UTC'), parseFloat('66972000')],
[Date.parse('2014-09-15 18:00:02 UTC'), parseFloat('67206000')],
[Date.parse('2014-09-15 19:00:02 UTC'), parseFloat('67433000')],
[Date.parse('2014-09-15 20:00:02 UTC'), parseFloat('67664000')],
[Date.parse('2014-09-15 21:00:02 UTC'), parseFloat('67923000')],
[Date.parse('2014-09-15 22:00:02 UTC'), parseFloat('68179000')],
[Date.parse('2014-09-15 23:00:02 UTC'), parseFloat('68282000')],
[Date.parse('2014-09-16 00:00:02 UTC'), parseFloat('68324000')],
[Date.parse('2014-09-16 01:00:02 UTC'), parseFloat('68365000')],
[Date.parse('2014-09-16 02:00:03 UTC'), parseFloat('68404000')],
[Date.parse('2014-09-16 03:00:03 UTC'), parseFloat('68436000')],
[Date.parse('2014-09-16 04:00:03 UTC'), parseFloat('68461000')],
[Date.parse('2014-09-16 05:00:02 UTC'), parseFloat('68487000')],
[Date.parse('2014-09-16 06:00:02 UTC'), parseFloat('68513000')],
[Date.parse('2014-09-16 07:00:02 UTC'), parseFloat('68541000')],
[Date.parse('2014-09-16 08:00:02 UTC'), parseFloat('68576000')],
[Date.parse('2014-09-16 09:00:02 UTC'), parseFloat('68719000')],
[Date.parse('2014-09-16 10:00:02 UTC'), parseFloat('68946000')]*/
]
};
var chart = new Highcharts.Chart(options);
});
You could try other data parsers.
EDIT: You can split your data and use Date.UTC() or prepare javascript timestamps in the backend.
Related
I can create the following chart:
Highcharts.chart('container', {
title: {
text: 'Highcharts Sankey Diagram'
},
chart: {
styledMode: false
},
plotOptions: {
series: {
// general options for all series
},
sankey: {
curveFactor: 0,
lineWidth: 1
}
},
series: [{
//minLinkWidth: 1,
keys: ['from', 'to', 'weight'],
data: [
['Root', 'Brazil', 0.01],
['Root', 'Canada', 0.005],
['Root', 'Mexico', 0.01],
['Root', 'USA', 0.01],
['Brazil', 'Portugal', 0.01],
['Brazil', 'France', 0.01],
['Brazil', 'Spain', 0.01],
['Brazil', 'England', 0.01],
['Canada', 'Portugal', 0.01],
['Canada', 'France', 0.01],
['Canada', 'England', 0.01],
['Mexico', 'Portugal', 0.01],
['Mexico', 'France', 0.01],
['Mexico', 'Spain', 0.01],
['Mexico', 'England', 0.01],
['USA', 'Portugal', 0.01],
['USA', 'France', 0.01],
['USA', 'Spain', 0.01],
['USA', 'England', 0.01],
['Portugal', 'Angola', 0.01],
['Portugal', 'Senegal', 0.01],
['Portugal', 'Morocco', 0.01],
['Portugal', 'South Africa', 0.01],
['France', 'Angola', 0.01],
['France', 'Senegal', 0.01],
['France', 'Mali', 0.01],
['France', 'Morocco', 0.01],
['France', 'South Africa', 0.01],
['Spain', 'Senegal', 0.01],
['Spain', 'Morocco', 0.01],
['Spain', 'South Africa', 0.01],
['England', 'Angola', 0.01],
['England', 'Senegal', 0.01],
['England', 'Morocco', 0.01],
['England', 'South Africa', 0.01],
['South Africa', 'China', 0.01],
['South Africa', 'India', 0.01],
['South Africa', 'Japan', 0.01],
['Angola', 'China', 0.01],
['Angola', 'India', 0.01],
['Angola', 'Japan', 0.01],
['Senegal', 'China', 0.01],
['Senegal', 'India', 0.01],
['Senegal', 'Japan', 0.01],
['Mali', 'China', 0.01],
['Mali', 'India', 0.01],
['Mali', 'Japan', 0.01],
['Morocco', 'China', 0.01],
['Morocco', 'India', 0.01],
['Morocco', 'Japan', 0.01]
],
type: 'sankey',
nodeWidth: 100,
name: 'Sankey demo series'
}]
});
Example
What I need is to have all bands of a small width: about 1.5 mm and not relevant to actual value. What happens now, is that soon as I set all values to the same value the chart refreshes bands with the new width.
Thanks
I am afraid that setting fixed link width is not possible in the current sankey implementation: https://www.highcharts.com/forum/viewtopic.php?f=9&t=47595&p=171541&hilit=sankey+link+sankey+link+width#p171541
How can I add a custom config.json and add a custom style /styles/custom.json to tileserver-gl using Kubernetes? Here is what I have so far for my kubernetes manifest file. Tileserver-gl is up and running fine but I do not see my custom theme that I defined. It does not look like my custom config.json file is being applied. Is using configMap and volumeMounts the right approach?
apiVersion: apps/v1
kind: Deployment
metadata:
name: map-tile-server
namespace: test
labels:
app: map-tile-server
spec:
replicas: 1
selector:
matchLabels:
app: map-tile-server
template:
metadata:
namespace: test
labels:
app: map-tile-server
spec:
containers:
- name: map-tile-server
image: klokantech/tileserver-gl:v2.6.0
ports:
- containerPort: 8080
name: http
volumeMounts:
- name: "map-tile-server-config"
mountPath: "/config.json"
- name: "map-tile-server-style-config"
mountPath: "/styles/custom.json"
resources:
limits:
memory: "256Mi"
cpu: "1"
volumes:
- name: "map-tile-server-config"
configMap:
name: "map-tile-server-config"
- name: "map-tile-server-style-config"
configMap:
name: "map-tile-server-style-config"
---
apiVersion: v1
kind: ConfigMap
data:
config.json: "{ \"options\": { \"paths\": { \"root\": \"\", \"fonts\": \"\", \"styles\": \"styles\", \"mbtiles\": \"data\" }, \"serveStaticMaps\": true, \"formatQuality\": { \"jpeg\": 90, \"webp\": 90 }, \"maxSize\": 8192, \"pbfAlias\": \"pbf\" }, \"styles\": { \"custom\": { \"style\": \"custom.json\", \"tilejson\": { \"bounds\": [-180, -90, 180, 90] } } }, \"data\": { \"v3\": { \"mbtiles\": \"zurich.mbtiles\" } } }"
metadata:
name: map-tile-server-config
namespace: test
---
apiVersion: v1
kind: ConfigMap
data:
custom.json: "{ \"version\": 8, \"name\": \"Custom\", \"metadata\": { \"mapbox:autocomposite\": false, \"mapbox:type\": \"template\", \"maputnik:renderer\": \"mbgljs\", \"openmaptiles:version\": \"3.x\", \"openmaptiles:mapbox:owner\": \"openmaptiles\", \"openmaptiles:mapbox:source:url\": \"mapbox://openmaptiles.4qljc88t\" }, \"sources\": {\"openmaptiles\": {\"type\": \"vector\", \"url\": \"mbtiles://{v3}\"}}, \"sprite\": \"\", \"glyphs\": \"{fontstack}/{range}.pbf\", \"layers\": [ {\"id\": \"background\",\"type\": \"background\",\"layout\": {\"visibility\": \"visible\"},\"paint\": {\"background-color\": \"rgba(49, 52, 56, 1)\"} }, {\"id\": \"landuse-residential\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landuse\",\"filter\": [ \"all\", [\"==\", \"$type\", \"Polygon\"], [\"in\", \"class\", \"residential\", \"suburb\", \"neighbourhood\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"hsl(47, 13%, 86%)\", \"fill-opacity\": 0.7} }, {\"id\": \"landcover_grass\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landcover\",\"filter\": [\"==\", \"class\", \"grass\"],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"hsl(82, 46%, 72%)\", \"fill-opacity\": 0.45} }, {\"id\": \"landcover_wood\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landcover\",\"filter\": [\"==\", \"class\", \"wood\"],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"fill-color\": \"hsl(82, 46%, 72%)\", \"fill-opacity\": {\"base\": 1, \"stops\": [[8, 0.6], [22, 1]]}} }, {\"id\": \"water\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"water\",\"filter\": [\"all\", [\"==\", \"$type\", \"Polygon\"], [\"!=\", \"intermittent\", 1]],\"layout\": {\"visibility\": \"visible\"},\"paint\": {\"fill-color\": \"rgba(34, 35, 40, 1)\"} }, {\"id\": \"water_intermittent\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"water\",\"filter\": [\"all\", [\"==\", \"$type\", \"Polygon\"], [\"==\", \"intermittent\", 1]],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"hsl(205, 56%, 73%)\", \"fill-opacity\": 0.7} }, {\"id\": \"landcover-ice-shelf\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landcover\",\"filter\": [\"==\", \"subclass\", \"ice_shelf\"],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"hsl(47, 26%, 88%)\", \"fill-opacity\": 0.8} }, {\"id\": \"landcover-glacier\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landcover\",\"filter\": [\"==\", \"subclass\", \"glacier\"],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"fill-color\": \"hsl(47, 22%, 94%)\", \"fill-opacity\": {\"base\": 1, \"stops\": [[0, 1], [8, 0.5]]}} }, {\"id\": \"landcover_sand\",\"type\": \"fill\",\"metadata\": {},\"source\": \"openmaptiles\",\"source-layer\": \"landcover\",\"filter\": [\"all\", [\"in\", \"class\", \"sand\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"fill-antialias\": false, \"fill-color\": \"rgba(232, 214, 38, 1)\", \"fill-opacity\": 0.3} }, {\"id\": \"landuse\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landuse\",\"filter\": [\"==\", \"class\", \"agriculture\"],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"#eae0d0\"} }, {\"id\": \"landuse_overlay_national_park\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"landcover\",\"filter\": [\"==\", \"class\", \"national_park\"],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"fill-color\": \"#E1EBB0\", \"fill-opacity\": {\"base\": 1, \"stops\": [[5, 0], [9, 0.75]]}} }, {\"id\": \"waterway-tunnel\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"waterway\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"tunnel\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(205, 56%, 73%)\", \"line-dasharray\": [3, 3], \"line-gap-width\": {\"stops\": [[12, 0], [20, 6]]}, \"line-opacity\": 1, \"line-width\": {\"base\": 1.4, \"stops\": [[8, 1], [20, 2]]}} }, {\"id\": \"waterway\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"waterway\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"!in\", \"brunnel\", \"tunnel\", \"bridge\"], [\"!=\", \"intermittent\", 1]],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(205, 56%, 73%)\", \"line-opacity\": 1, \"line-width\": {\"base\": 1.4, \"stops\": [[8, 1], [20, 8]]}} }, {\"id\": \"waterway_intermittent\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"waterway\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"!in\", \"brunnel\", \"tunnel\", \"bridge\"], [\"==\", \"intermittent\", 1]],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(205, 56%, 73%)\", \"line-opacity\": 1, \"line-width\": {\"base\": 1.4, \"stops\": [[8, 1], [20, 8]]}, \"line-dasharray\": [2, 1]} }, {\"id\": \"tunnel_railway_transit\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"minzoom\": 0,\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"tunnel\"], [\"==\", \"class\", \"transit\"]],\"layout\": { \"line-cap\": \"butt\", \"line-join\": \"miter\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(34, 12%, 66%)\", \"line-dasharray\": [3, 3], \"line-opacity\": {\"base\": 1, \"stops\": [[11, 0], [16, 1]]}} }, {\"id\": \"building\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"building\",\"layout\": {\"visibility\": \"none\"},\"paint\": { \"fill-antialias\": true, \"fill-color\": \"rgba(222, 211, 190, 1)\", \"fill-opacity\": {\"base\": 1, \"stops\": [[13, 0], [15, 1]]}, \"fill-outline-color\": { \"stops\": [[15, \"rgba(212, 177, 146, 0)\"],[16, \"rgba(212, 177, 146, 0.5)\"] ] }} }, {\"id\": \"housenumber\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"housenumber\",\"minzoom\": 17,\"filter\": [\"==\", \"$type\", \"Point\"],\"layout\": { \"text-field\": \"{housenumber}\", \"text-font\": [\"Noto Sans Regular\"], \"text-size\": 10, \"visibility\": \"none\"},\"paint\": {\"text-color\": \"rgba(212, 177, 146, 1)\"} }, {\"id\": \"road_area_pier\",\"type\": \"fill\",\"metadata\": {},\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [\"all\", [\"==\", \"$type\", \"Polygon\"], [\"==\", \"class\", \"pier\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"hsl(47, 26%, 88%)\", \"fill-antialias\": true} }, {\"id\": \"road_pier\",\"type\": \"line\",\"metadata\": {},\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [\"all\", [\"==\", \"$type\", \"LineString\"], [\"in\", \"class\", \"pier\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(47, 26%, 88%)\", \"line-width\": {\"base\": 1.2, \"stops\": [[15, 1], [17, 4]]}} }, {\"id\": \"road_bridge_area\",\"type\": \"fill\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"Polygon\"], [\"in\", \"brunnel\", \"bridge\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"fill-color\": \"hsl(47, 26%, 88%)\", \"fill-opacity\": 0.5} }, {\"id\": \"road_path\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"in\", \"class\", \"path\", \"track\"]],\"layout\": { \"line-cap\": \"square\", \"line-join\": \"bevel\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(0, 0%, 97%)\", \"line-dasharray\": [1, 1], \"line-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 10]]}} }, {\"id\": \"road_minor\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"minzoom\": 13,\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"in\", \"class\", \"minor\", \"service\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(0, 0%, 97%)\", \"line-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}} }, {\"id\": \"tunnel_minor\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"tunnel\"], [\"==\", \"class\", \"minor_road\"]],\"layout\": { \"line-cap\": \"butt\", \"line-join\": \"miter\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#efefef\", \"line-dasharray\": [0.36, 0.18], \"line-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}} }, {\"id\": \"tunnel_major\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"tunnel\"], [\"in\", \"class\", \"primary\", \"secondary\", \"tertiary\", \"trunk\"]],\"layout\": { \"line-cap\": \"butt\", \"line-join\": \"miter\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#fff\", \"line-dasharray\": [0.28, 0.14], \"line-width\": {\"base\": 1.4, \"stops\": [[6, 0.5], [20, 30]]}} }, {\"id\": \"aeroway-area\",\"type\": \"fill\",\"metadata\": {\"mapbox:group\": \"1444849345966.4436\"},\"source\": \"openmaptiles\",\"source-layer\": \"aeroway\",\"minzoom\": 4,\"filter\": [ \"all\", [\"==\", \"$type\", \"Polygon\"], [\"in\", \"class\", \"runway\", \"taxiway\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"fill-color\": \"rgba(255, 255, 255, 1)\", \"fill-opacity\": {\"base\": 1, \"stops\": [[13, 0], [14, 1]]}} }, {\"id\": \"aeroway-taxiway\",\"type\": \"line\",\"metadata\": {\"mapbox:group\": \"1444849345966.4436\"},\"source\": \"openmaptiles\",\"source-layer\": \"aeroway\",\"minzoom\": 12,\"filter\": [ \"all\", [\"in\", \"class\", \"taxiway\"], [\"==\", \"$type\", \"LineString\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"rgba(255, 255, 255, 1)\", \"line-opacity\": 1, \"line-width\": {\"base\": 1.5, \"stops\": [[12, 1], [17, 10]]}} }, {\"id\": \"aeroway-runway\",\"type\": \"line\",\"metadata\": {\"mapbox:group\": \"1444849345966.4436\"},\"source\": \"openmaptiles\",\"source-layer\": \"aeroway\",\"minzoom\": 4,\"filter\": [ \"all\", [\"in\", \"class\", \"runway\"], [\"==\", \"$type\", \"LineString\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"rgba(255, 255, 255, 1)\", \"line-opacity\": 1, \"line-width\": {\"base\": 1.5, \"stops\": [[11, 4], [17, 50]]}} }, {\"id\": \"road_trunk_primary\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"in\", \"class\", \"trunk\", \"primary\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#fff\", \"line-width\": {\"base\": 1.4, \"stops\": [[6, 0.5], [20, 30]]}} }, {\"id\": \"road_secondary_tertiary\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"in\", \"class\", \"secondary\", \"tertiary\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#fff\", \"line-width\": {\"base\": 1.4, \"stops\": [[6, 0.5], [20, 20]]}} }, {\"id\": \"road_major_motorway\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"class\", \"motorway\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(0, 0%, 100%)\", \"line-offset\": 0, \"line-width\": {\"base\": 1.4, \"stops\": [[8, 1], [16, 10]]}} }, {\"id\": \"railway-transit\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"class\", \"transit\"], [\"!=\", \"brunnel\", \"tunnel\"]],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(34, 12%, 66%)\", \"line-opacity\": {\"base\": 1, \"stops\": [[11, 0], [16, 1]]}} }, {\"id\": \"railway\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [\"==\", \"class\", \"rail\"],\"layout\": {\"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(34, 12%, 66%)\", \"line-opacity\": {\"base\": 1, \"stops\": [[11, 0], [16, 1]]}} }, {\"id\": \"waterway-bridge-case\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"waterway\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"bridge\"]],\"layout\": { \"line-cap\": \"butt\", \"line-join\": \"miter\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#bbbbbb\", \"line-gap-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}, \"line-width\": {\"base\": 1.6, \"stops\": [[12, 0.5], [20, 10]]}} }, {\"id\": \"waterway-bridge\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"waterway\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"bridge\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(205, 56%, 73%)\", \"line-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}} }, {\"id\": \"bridge_minor case\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"bridge\"], [\"==\", \"class\", \"minor_road\"]],\"layout\": { \"line-cap\": \"butt\", \"line-join\": \"miter\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#dedede\", \"line-gap-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}, \"line-width\": {\"base\": 1.6, \"stops\": [[12, 0.5], [20, 10]]}} }, {\"id\": \"bridge_major case\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"bridge\"], [\"in\", \"class\", \"primary\", \"secondary\", \"tertiary\", \"trunk\"]],\"layout\": { \"line-cap\": \"butt\", \"line-join\": \"miter\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#dedede\", \"line-gap-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}, \"line-width\": {\"base\": 1.6, \"stops\": [[12, 0.5], [20, 10]]}} }, {\"id\": \"bridge_minor\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"bridge\"], [\"==\", \"class\", \"minor_road\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#efefef\", \"line-width\": {\"base\": 1.55, \"stops\": [[4, 0.25], [20, 30]]}} }, {\"id\": \"bridge_major\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation\",\"filter\": [ \"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"brunnel\", \"bridge\"], [\"in\", \"class\", \"primary\", \"secondary\", \"tertiary\", \"trunk\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"#fff\", \"line-width\": {\"base\": 1.4, \"stops\": [[6, 0.5], [20, 30]]}} }, {\"id\": \"admin_sub\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"boundary\",\"filter\": [\"in\", \"admin_level\", 4, 6, 8],\"layout\": {\"visibility\": \"none\"},\"paint\": {\"line-color\": \"hsla(0, 0%, 60%, 0.5)\", \"line-dasharray\": [2, 1]} }, {\"id\": \"admin_country\",\"type\": \"line\",\"source\": \"openmaptiles\",\"source-layer\": \"boundary\",\"filter\": [ \"all\", [\"<=\", \"admin_level\", 2], [\"==\", \"$type\", \"LineString\"]],\"layout\": { \"line-cap\": \"round\", \"line-join\": \"round\", \"visibility\": \"none\"},\"paint\": { \"line-color\": \"hsl(0, 0%, 60%)\", \"line-width\": {\"base\": 1.3, \"stops\": [[3, 0.5], [22, 15]]}} }, {\"id\": \"poi_label\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"poi\",\"minzoom\": 14,\"filter\": [\"all\", [\"==\", \"$type\", \"Point\"], [\"==\", \"rank\", 1]],\"layout\": { \"icon-size\": 1, \"text-anchor\": \"top\", \"text-field\": \"{name:latin}\\n{name:nonlatin}\", \"text-font\": [\"Noto Sans Regular\"], \"text-max-width\": 8, \"text-offset\": [0, 0.5], \"text-size\": 11, \"visibility\": \"none\"},\"paint\": { \"text-color\": \"#666\", \"text-halo-blur\": 1, \"text-halo-color\": \"rgba(255,255,255,0.75)\", \"text-halo-width\": 1} }, {\"id\": \"airport-label\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"aerodrome_label\",\"minzoom\": 10,\"filter\": [\"all\", [\"has\", \"iata\"]],\"layout\": { \"icon-size\": 1, \"text-anchor\": \"top\", \"text-field\": \"{name:latin}\\n{name:nonlatin}\", \"text-font\": [\"Noto Sans Regular\"], \"text-max-width\": 8, \"text-offset\": [0, 0.5], \"text-size\": 11, \"visibility\": \"none\"},\"paint\": { \"text-color\": \"#666\", \"text-halo-blur\": 1, \"text-halo-color\": \"rgba(255,255,255,0.75)\", \"text-halo-width\": 1} }, {\"id\": \"road_major_label\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"transportation_name\",\"filter\": [\"==\", \"$type\", \"LineString\"],\"layout\": { \"symbol-placement\": \"line\", \"text-field\": \"{name:latin} {name:nonlatin}\", \"text-font\": [\"Noto Sans Regular\"], \"text-letter-spacing\": 0.1, \"text-rotation-alignment\": \"map\", \"text-size\": {\"base\": 1.4, \"stops\": [[10, 8], [20, 14]]}, \"text-transform\": \"uppercase\", \"visibility\": \"none\"},\"paint\": { \"text-color\": \"#000\", \"text-halo-color\": \"hsl(0, 0%, 100%)\", \"text-halo-width\": 2} }, {\"id\": \"place_label_other\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"place\",\"minzoom\": 8,\"filter\": [ \"all\", [\"==\", \"$type\", \"Point\"], [\"!in\", \"class\", \"city\", \"state\", \"country\", \"continent\"]],\"layout\": { \"text-anchor\": \"center\", \"text-field\": \"{name:latin}\\n{name:nonlatin}\", \"text-font\": [\"Noto Sans Regular\"], \"text-max-width\": 6, \"text-size\": {\"stops\": [[6, 10], [12, 14]]}, \"visibility\": \"none\"},\"paint\": { \"text-color\": \"hsl(0, 0%, 25%)\", \"text-halo-blur\": 0, \"text-halo-color\": \"hsl(0, 0%, 100%)\", \"text-halo-width\": 2} }, {\"id\": \"place_label_city\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"place\",\"maxzoom\": 16,\"filter\": [\"all\", [\"==\", \"$type\", \"Point\"], [\"==\", \"class\", \"city\"]],\"layout\": { \"text-field\": \"{name:latin}\\n{name:nonlatin}\", \"text-font\": [\"Noto Sans Regular\"], \"text-max-width\": 10, \"text-size\": {\"stops\": [[3, 12], [8, 16]]}, \"visibility\": \"none\"},\"paint\": { \"text-color\": \"hsl(0, 0%, 0%)\", \"text-halo-blur\": 0, \"text-halo-color\": \"hsla(0, 0%, 100%, 0.75)\", \"text-halo-width\": 2} }, {\"id\": \"country_label-other\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"place\",\"maxzoom\": 12,\"filter\": [ \"all\", [\"==\", \"$type\", \"Point\"], [\"==\", \"class\", \"country\"], [\"!has\", \"iso_a2\"]],\"layout\": { \"text-field\": \"{name:latin}\", \"text-font\": [\"Noto Sans Regular\"], \"text-max-width\": 10, \"text-size\": {\"stops\": [[3, 12], [8, 22]]}, \"visibility\": \"none\"},\"paint\": { \"text-color\": \"hsl(0, 0%, 13%)\", \"text-halo-blur\": 0, \"text-halo-color\": \"rgba(255,255,255,0.75)\", \"text-halo-width\": 2} }, {\"id\": \"country_label\",\"type\": \"symbol\",\"source\": \"openmaptiles\",\"source-layer\": \"place\",\"maxzoom\": 12,\"filter\": [ \"all\", [\"==\", \"$type\", \"Point\"], [\"==\", \"class\", \"country\"], [\"has\", \"iso_a2\"]],\"layout\": { \"text-field\": \"{name:latin}\", \"text-font\": [\"Noto Sans Bold\"], \"text-max-width\": 10, \"text-size\": {\"stops\": [[3, 12], [8, 22]]}, \"visibility\": \"none\"},\"paint\": { \"text-color\": \"hsl(0, 0%, 13%)\", \"text-halo-blur\": 0, \"text-halo-color\": \"rgba(255,255,255,0.75)\", \"text-halo-width\": 2} } ], \"id\": \"basic\"}"
metadata:
name: map-tile-server-style-config
namespace: test
I've looked a little deeper into your environment and deployed it on my local cluster, here are my findings:
Look where the files end up being mounted when I deploy your yaml as is in your question:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
map-tile-server-5c86b677df-wswwz 1/1 Running 0 2s
$ kubectl exec -it map-tile-server-5cb677df-wswwz /bin/bash --
root#map-tile-server-5c86b677df-wswwz:/# ls -l
drwxrwxrwx 3 root root 4096 Apr 10 12:16 config.json
drwxr-xr-x 3 root root 4096 Apr 10 12:16 styles
root#map-tile-server-5c86b677df-wswwz:/config.json# ls -l
lrwxrwxrwx 1 root root 18 Apr 10 12:16 config.json -> ..data/config.json
root#map-tile-server-5c86b677df-wswwz:/styles# ls -l
drwxrwxrwx 3 root root 4096 Apr 10 12:16 custom.json
root#map-tile-server-5c86b677df-wswwz:/styles# cd custom.json/
root#map-tile-server-5c86b677df-wswwz:/styles/custom.json# ls -l
lrwxrwxrwx 1 root root 18 Apr 10 12:16 custom.json -> ..data/custom.json
It is creating folders with the file names and inserting your configmaps inside each one.
In your question you mention you want this files to be placed in /config.json and /styles/custom.json, I'd like to comment two things with you:
You can't set config.json to mount directly in /, the container will not run because you "overwrite" the / folder. So your config.json needs to stay inside some folder, best practice is to mount directly in /data dir.
Although there is a symlink directing the /styles/custom.json/custom.json file to data/custom.json, It is good to warn you that:
if you mention the path /style/custom.json in your config.json it will not find the file there.
Here you can see an example provided in Kubernetes Documentation on How to Mount ConfigMaps as Files
These are the changes I made to your yaml to move the custom.json file to the intended path:
volumeMounts:
- name: map-tile-server-config
mountPath: /config.json
- name: map-tile-server-style-config
mountPath: /styles
volumes:
- name: map-tile-server-config
configMap:
name: map-tile-server-config
- name: map-tile-server-style-config
configMap:
name: map-tile-server-style-config
Now let's test it:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
map-tile-server-5cd7694b74-s6g6g 1/1 Running 0 8s
$ kubectl exec -it map-tile-server-5cd7694b74-s6g6g -- /bin/bash
root#map-tile-server-5cd7694b74-s6g6g:/# ls
bin boot config.json data dev etc home lib lib64 media mnt opt proc root run sbin srv styles sys tmp usr var
root#map-tile-server-5cd7694b74-s6g6g:/config.json# ls -l
lrwxrwxrwx 1 root root 18 Apr 10 12:27 config.json -> ..data/config.json
root#map-tile-server-5cd7694b74-s6g6g:/styles# ls -l
lrwxrwxrwx 1 root root 18 Apr 10 12:27 custom.json -> ..data/custom.json
Now the files are in the intended location.
My suggestion to easy your management later, would be for example mounting to:
volumeMounts:
- name: map-tile-server-config
mountPath: /data/config
- name: map-tile-server-style-config
mountPath: /data/styles
Would output everything inside data folder:
owilliam#minikube-usc1a:~/CaseFiles/configmap-json$ k exec -it map-tile-server-6b5fc64fd6-6g2wb -- /bin/bash
root#map-tile-server-6b5fc64fd6-6g2wb:/data# ls
config styles zurich_switzerland.mbtiles
root#map-tile-server-6b5fc64fd6-6g2wb:/data# ls -l
total 23684
drwxrwxrwx 3 root root 4096 Apr 10 13:22 config
drwxrwxrwx 3 root root 4096 Apr 10 13:22 styles
-rw-r--r-- 1 root root 24244224 Apr 10 13:22 zurich_switzerland.mbtiles
root#map-tile-server-6b5fc64fd6-6g2wb:/data# ls config
config.json
root#map-tile-server-6b5fc64fd6-6g2wb:/data# ls styles
If you have any question let me know in the comments.
I setting data to highchart with razor syntax like this :
series: [
#foreach (var item in Model)
{
<text>
{
name: '#item.name',
data: [
#foreach (var item2 in item.finalChart)
{
#:[Date.parse("#item2.date1"), #item2.value],
}
]
},
</text>
}
]
And here is executed code:
series: [
{
name: 'clicks6',
data: [
[Date.parse("04/03/2017"), 10],
[Date.parse("04/04/2017"), 45],
]
},
{
name: 'clicks4',
data: [
[Date.parse("04/03/2017"), 28],
[Date.parse("04/04/2017"), 22],
]
},
{
name: 'clicks8',
data: [
[Date.parse("04/03/2017"), 8],
[Date.parse("04/04/2017"), 35],
[Date.parse("04/05/2017"), 5],
[Date.parse("04/10/2017"), 0],
]
},
]
As you can see in below points not adapted with y axis.
If I add another format of data this problem doesn't happend
series: [{
name: 'Installation',
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
},{
name: 'Other',
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
}]
How can fix this issue? with some reasons I can't use another format of data.
UPDATE:
It is desired mode that I want:
add UTC to each date input Date.parse("04/03/2017" + ' UTC')
#:[Date.parse("#item2.date1" + ' UTC'), #item2.value],
xAxis will be
xAxis: {
type: 'datetime',
tickInterval: 24 * 3600 * 1000 //this is for one day
},
Highcharts.chart('container', {
chart: {
type: 'spline',
zoomType: 'x'
},
title: {
text: 'Highcharts'
},
subtitle: {
text: document.ontouchstart === undefined ?
'Click and drag in the plot area to zoom in' : 'Pinch the chart to zoom in'
},
xAxis: {
type: 'datetime',
tickInterval: 24 * 3600 * 1000
},
yAxis: {
title: {
text: 'Snow Depth'
},
},
series: [{
name: 'clicks6',
data: [
[Date.parse("04/03/2017" + ' UTC'), 10],
[Date.parse("04/04/2017" + ' UTC'), 45],
]
},
{
name: 'clicks4',
data: [
[Date.parse("04/03/2017" + ' UTC'), 28],
[Date.parse("04/04/2017" + ' UTC'), 22],
]
},
{
name: 'clicks8',
data: [
[Date.parse("04/03/2017" + ' UTC'), 8],
[Date.parse("04/04/2017" + ' UTC'), 35],
[Date.parse("04/05/2017" + ' UTC'), 5],
[Date.parse("04/10/2017" + ' UTC'), 0],
]
},
]
});
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
How to get index of an clicked point in scatter plot
$(function () {
$('#container').highcharts({
chart: {
type: 'scatter',
zoomType: 'xy'
},
title: {
text: 'Height Versus Weight of 507 Individuals by Gender'
},
subtitle: {
text: 'Source: Heinz 2003'
},
xAxis: {
title: {
enabled: true,
text: 'Height (cm)'
},
startOnTick: true,
endOnTick: true,
showLastLabel: true
},
yAxis: {
title: {
text: 'Weight (kg)'
}
},
legend: {
layout: 'vertical',
align: 'left',
verticalAlign: 'top',
x: 100,
y: 70,
floating: true,
backgroundColor: '#FFFFFF',
borderWidth: 1
},
plotOptions: {
scatter: {
marker: {
radius: 5,
states: {
hover: {
enabled: true,
lineColor: 'rgb(100,100,100)'
}
}
},
point: {
events: {
click: function (event) {
alert('X: ' + this.x);
alert('Index : ' + this.value);
}
}
},
states: {
hover: {
marker: {
enabled: false
}
}
},
tooltip: {
headerFormat: '<b>{series.name}</b><br>',
pointFormat: '{point.x} cm, {point.y} kg'
}
}
},
series: [{
name: 'Female',
color: 'rgba(223, 83, 83, .5)',
data: [[161.2, 51.6], [167.5, 59.0], [159.5, 49.2], [157.0, 63.0], [155.8, 53.6],
[170.0, 59.0], [159.1, 47.6], [166.0, 69.8], [176.2, 66.8], [160.2, 75.2],
[172.5, 55.2], [170.9, 54.2], [172.9, 62.5], [153.4, 42.0], [160.0, 50.0],
[147.2, 49.8], [168.2, 49.2], [175.0, 73.2], [157.0, 47.8], [167.6, 68.8],
[159.5, 50.6], [175.0, 82.5], [166.8, 57.2], [176.5, 87.8], [170.2, 72.8],
[174.0, 54.5], [173.0, 59.8], [179.9, 67.3], [170.5, 67.8], [160.0, 47.0],
[154.4, 46.2], [162.0, 55.0], [176.5, 83.0], [160.0, 54.4], [152.0, 45.8],
[162.1, 53.6], [170.0, 73.2], [160.2, 52.1], [161.3, 67.9], [166.4, 56.6],
[168.9, 62.3], [163.8, 58.5], [167.6, 54.5], [160.0, 50.2], [161.3, 60.3],
[167.6, 58.3], [165.1, 56.2], [160.0, 50.2], [170.0, 72.9], [157.5, 59.8],
[167.6, 61.0], [160.7, 69.1], [163.2, 55.9], [152.4, 46.5], [157.5, 54.3],
[168.3, 54.8], [180.3, 60.7], [165.5, 60.0], [165.0, 62.0], [164.5, 60.3],
[156.0, 52.7], [160.0, 74.3], [163.0, 62.0], [165.7, 73.1], [161.0, 80.0],
[162.0, 54.7], [166.0, 53.2], [174.0, 75.7], [172.7, 61.1], [167.6, 55.7],
[151.1, 48.7], [164.5, 52.3], [163.5, 50.0], [152.0, 59.3], [169.0, 62.5],
[164.0, 55.7], [161.2, 54.8], [155.0, 45.9], [170.0, 70.6], [176.2, 67.2],
[170.0, 69.4], [162.5, 58.2], [170.3, 64.8], [164.1, 71.6], [169.5, 52.8],
[163.2, 59.8], [154.5, 49.0], [159.8, 50.0], [173.2, 69.2], [170.0, 55.9],
[161.4, 63.4], [169.0, 58.2], [166.2, 58.6], [159.4, 45.7], [162.5, 52.2],
[159.0, 48.6], [162.8, 57.8], [159.0, 55.6], [179.8, 66.8], [162.9, 59.4],
[161.0, 53.6], [151.1, 73.2], [168.2, 53.4], [168.9, 69.0], [173.2, 58.4],
[171.8, 56.2], [178.0, 70.6], [164.3, 59.8], [163.0, 72.0], [168.5, 65.2],
[166.8, 56.6], [172.7, 105.2], [163.5, 51.8], [169.4, 63.4], [167.8, 59.0],
[159.5, 47.6], [167.6, 63.0], [161.2, 55.2], [160.0, 45.0], [163.2, 54.0],
[162.2, 50.2], [161.3, 60.2], [149.5, 44.8], [157.5, 58.8], [163.2, 56.4],
[172.7, 62.0], [155.0, 49.2], [156.5, 67.2], [164.0, 53.8], [160.9, 54.4],
[162.8, 58.0], [167.0, 59.8], [160.0, 54.8], [160.0, 43.2], [168.9, 60.5],
[158.2, 46.4], [156.0, 64.4], [160.0, 48.8], [167.1, 62.2], [158.0, 55.5],
[167.6, 57.8], [156.0, 54.6], [162.1, 59.2], [173.4, 52.7], [159.8, 53.2],
[170.5, 64.5], [159.2, 51.8], [157.5, 56.0], [161.3, 63.6], [162.6, 63.2],
[160.0, 59.5], [168.9, 56.8], [165.1, 64.1], [162.6, 50.0], [165.1, 72.3],
[166.4, 55.0], [160.0, 55.9], [152.4, 60.4], [170.2, 69.1], [162.6, 84.5],
[170.2, 55.9], [158.8, 55.5], [172.7, 69.5], [167.6, 76.4], [162.6, 61.4],
[167.6, 65.9], [156.2, 58.6], [175.2, 66.8], [172.1, 56.6], [162.6, 58.6],
[160.0, 55.9], [165.1, 59.1], [182.9, 81.8], [166.4, 70.7], [165.1, 56.8],
[177.8, 60.0], [165.1, 58.2], [175.3, 72.7], [154.9, 54.1], [158.8, 49.1],
[172.7, 75.9], [168.9, 55.0], [161.3, 57.3], [167.6, 55.0], [165.1, 65.5],
[175.3, 65.5], [157.5, 48.6], [163.8, 58.6], [167.6, 63.6], [165.1, 55.2],
[165.1, 62.7], [168.9, 56.6], [162.6, 53.9], [164.5, 63.2], [176.5, 73.6],
[168.9, 62.0], [175.3, 63.6], [159.4, 53.2], [160.0, 53.4], [170.2, 55.0],
[162.6, 70.5], [167.6, 54.5], [162.6, 54.5], [160.7, 55.9], [160.0, 59.0],
[157.5, 63.6], [162.6, 54.5], [152.4, 47.3], [170.2, 67.7], [165.1, 80.9],
[172.7, 70.5], [165.1, 60.9], [170.2, 63.6], [170.2, 54.5], [170.2, 59.1],
[161.3, 70.5], [167.6, 52.7], [167.6, 62.7], [165.1, 86.3], [162.6, 66.4],
[152.4, 67.3], [168.9, 63.0], [170.2, 73.6], [175.2, 62.3], [175.2, 57.7],
[160.0, 55.4], [165.1, 104.1], [174.0, 55.5], [170.2, 77.3], [160.0, 80.5],
[167.6, 64.5], [167.6, 72.3], [167.6, 61.4], [154.9, 58.2], [162.6, 81.8],
[175.3, 63.6], [171.4, 53.4], [157.5, 54.5], [165.1, 53.6], [160.0, 60.0],
[174.0, 73.6], [162.6, 61.4], [174.0, 55.5], [162.6, 63.6], [161.3, 60.9],
[156.2, 60.0], [149.9, 46.8], [169.5, 57.3], [160.0, 64.1], [175.3, 63.6],
[169.5, 67.3], [160.0, 75.5], [172.7, 68.2], [162.6, 61.4], [157.5, 76.8],
[176.5, 71.8], [164.4, 55.5], [160.7, 48.6], [174.0, 66.4], [163.8, 67.3]]
}, {
name: 'Male',
color: 'rgba(119, 152, 191, .5)',
data: [[174.0, 65.6], [175.3, 71.8], [193.5, 80.7], [186.5, 72.6], [187.2, 78.8],
[181.5, 74.8], [184.0, 86.4], [184.5, 78.4], [175.0, 62.0], [184.0, 81.6],
[180.0, 76.6], [177.8, 83.6], [192.0, 90.0], [176.0, 74.6], [174.0, 71.0],
[184.0, 79.6], [192.7, 93.8], [171.5, 70.0], [173.0, 72.4], [176.0, 85.9],
[176.0, 78.8], [180.5, 77.8], [172.7, 66.2], [176.0, 86.4], [173.5, 81.8],
[178.0, 89.6], [180.3, 82.8], [180.3, 76.4], [164.5, 63.2], [173.0, 60.9],
[183.5, 74.8], [175.5, 70.0], [188.0, 72.4], [189.2, 84.1], [172.8, 69.1],
[170.0, 59.5], [182.0, 67.2], [170.0, 61.3], [177.8, 68.6], [184.2, 80.1],
[186.7, 87.8], [171.4, 84.7], [172.7, 73.4], [175.3, 72.1], [180.3, 82.6],
[182.9, 88.7], [188.0, 84.1], [177.2, 94.1], [172.1, 74.9], [167.0, 59.1],
[169.5, 75.6], [174.0, 86.2], [172.7, 75.3], [182.2, 87.1], [164.1, 55.2],
[163.0, 57.0], [171.5, 61.4], [184.2, 76.8], [174.0, 86.8], [174.0, 72.2],
[177.0, 71.6], [186.0, 84.8], [167.0, 68.2], [171.8, 66.1], [182.0, 72.0],
[167.0, 64.6], [177.8, 74.8], [164.5, 70.0], [192.0, 101.6], [175.5, 63.2],
[171.2, 79.1], [181.6, 78.9], [167.4, 67.7], [181.1, 66.0], [177.0, 68.2],
[174.5, 63.9], [177.5, 72.0], [170.5, 56.8], [182.4, 74.5], [197.1, 90.9],
[180.1, 93.0], [175.5, 80.9], [180.6, 72.7], [184.4, 68.0], [175.5, 70.9],
[180.6, 72.5], [177.0, 72.5], [177.1, 83.4], [181.6, 75.5], [176.5, 73.0],
[175.0, 70.2], [174.0, 73.4], [165.1, 70.5], [177.0, 68.9], [192.0, 102.3],
[176.5, 68.4], [169.4, 65.9], [182.1, 75.7], [179.8, 84.5], [175.3, 87.7],
[184.9, 86.4], [177.3, 73.2], [167.4, 53.9], [178.1, 72.0], [168.9, 55.5],
[157.2, 58.4], [180.3, 83.2], [170.2, 72.7], [177.8, 64.1], [172.7, 72.3],
[165.1, 65.0], [186.7, 86.4], [165.1, 65.0], [174.0, 88.6], [175.3, 84.1],
[185.4, 66.8], [177.8, 75.5], [180.3, 93.2], [180.3, 82.7], [177.8, 58.0],
[177.8, 79.5], [177.8, 78.6], [177.8, 71.8], [177.8, 116.4], [163.8, 72.2],
[188.0, 83.6], [198.1, 85.5], [175.3, 90.9], [166.4, 85.9], [190.5, 89.1],
[166.4, 75.0], [177.8, 77.7], [179.7, 86.4], [172.7, 90.9], [190.5, 73.6],
[185.4, 76.4], [168.9, 69.1], [167.6, 84.5], [175.3, 64.5], [170.2, 69.1],
[190.5, 108.6], [177.8, 86.4], [190.5, 80.9], [177.8, 87.7], [184.2, 94.5],
[176.5, 80.2], [177.8, 72.0], [180.3, 71.4], [171.4, 72.7], [172.7, 84.1],
[172.7, 76.8], [177.8, 63.6], [177.8, 80.9], [182.9, 80.9], [170.2, 85.5],
[167.6, 68.6], [175.3, 67.7], [165.1, 66.4], [185.4, 102.3], [181.6, 70.5],
[172.7, 95.9], [190.5, 84.1], [179.1, 87.3], [175.3, 71.8], [170.2, 65.9],
[193.0, 95.9], [171.4, 91.4], [177.8, 81.8], [177.8, 96.8], [167.6, 69.1],
[167.6, 82.7], [180.3, 75.5], [182.9, 79.5], [176.5, 73.6], [186.7, 91.8],
[188.0, 84.1], [188.0, 85.9], [177.8, 81.8], [174.0, 82.5], [177.8, 80.5],
[171.4, 70.0], [185.4, 81.8], [185.4, 84.1], [188.0, 90.5], [188.0, 91.4],
[182.9, 89.1], [176.5, 85.0], [175.3, 69.1], [175.3, 73.6], [188.0, 80.5],
[188.0, 82.7], [175.3, 86.4], [170.5, 67.7], [179.1, 92.7], [177.8, 93.6],
[175.3, 70.9], [182.9, 75.0], [170.8, 93.2], [188.0, 93.2], [180.3, 77.7],
[177.8, 61.4], [185.4, 94.1], [168.9, 75.0], [185.4, 83.6], [180.3, 85.5],
[174.0, 73.9], [167.6, 66.8], [182.9, 87.3], [160.0, 72.3], [180.3, 88.6],
[167.6, 75.5], [186.7, 101.4], [175.3, 91.1], [175.3, 67.3], [175.9, 77.7],
[175.3, 81.8], [179.1, 75.5], [181.6, 84.5], [177.8, 76.6], [182.9, 85.0],
[177.8, 102.5], [184.2, 77.3], [179.1, 71.8], [176.5, 87.9], [188.0, 94.3],
[174.0, 70.9], [167.6, 64.5], [170.2, 77.3], [167.6, 72.3], [188.0, 87.3],
[174.0, 80.0], [176.5, 82.3], [180.3, 73.6], [167.6, 74.1], [188.0, 85.9],
[180.3, 73.2], [167.6, 76.3], [183.0, 65.9], [183.0, 90.9], [179.1, 89.1],
[170.2, 62.3], [177.8, 82.7], [179.1, 79.1], [190.5, 98.2], [177.8, 84.1],
[180.3, 83.2], [180.3, 83.2]]
}]
});
});
For Demo http://jsfiddle.net/KQ6Uk/6/
Points are not indexed in Highcharts. You can change format from array: [x, y] to object: {x: x, y:y, index}. Then in callback you can access that property: this.options.myIndex.
the geo-rss.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml">
<channel>
<link>http://maps.google.com</link>
<title>beijing 1</title>
<description><![CDATA[dsad]]></description>
<item>
<guid isPermaLink="false">00048b5b66b7169311de4</guid>
<pubDate>Wed, 14 Jul 2010 16:23:08 +0000</pubDate>
<title>ww</title>
<description><![CDATA[<div dir="ltr">dwqd</div>]]></description>
<author>zjm1126</author>
<georss:point>
39.965015 116.362381
</georss:point>
<georss:elev>0.000000</georss:elev>
</item>
<item>
<guid isPermaLink="false">00048b5b6a51f18e53ea5</guid>
<pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>
<title>线条 1</title>
<description><![CDATA[]]></description>
<author>zjm1126</author>
<gml:LineString>
<gml:posList>
39.992191 116.417938
39.968254 116.466698
39.939568 116.451591
39.959045 116.411079
</gml:posList>
</gml:LineString>
</item>
<item>
<guid isPermaLink="false">00048b5b6a520c46d52bd</guid>
<pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>
<title>线条 2</title>
<description><![CDATA[<br>]]></description>
<author>zjm1126</author>
<gml:LineString>
<gml:posList>
39.990536 116.437225
39.963963 116.477051
39.958702 116.437912
39.959045 116.411079
</gml:posList>
</gml:LineString>
</item>
<item>
<guid isPermaLink="false">00048b5b6a521daa5391e</guid>
<pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>
<title>qqdw</title>
<description><![CDATA[dsa]]></description>
<author>zjm1126</author>
<gml:LineString>
<gml:posList>
39.987720 116.519913
39.947990 116.556641
39.959045 116.523003
</gml:posList>
</gml:LineString>
</item>
<item>
<guid isPermaLink="false">00048b5b6a52357ab39f0</guid>
<pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>
<title>dwqd</title>
<description><![CDATA[]]></description>
<author>zjm1126</author>
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:posList>
40.034264 116.451241
40.015781 116.437225
40.011654 116.409363
40.033478 116.430305
40.034264 116.451241
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</item>
</channel>
</rss>
and feedparser 's code is :
import feedparser
class read(BaseRequestHandler):
def post(self):
url=self.request.POST['url']
d = feedparser.parse(url)
o=d
self.response.out.write(''.join('%s: %s <br/>' % (a, getattr(o, a)) for a in dir(o)))
return
when i parse geo-rss.xml use feedparser , it show :
__class__:
__cmp__:
__contains__:
dwqd
', 'language': None}, 'summary': u'
dwqd
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'ww', 'language': None}, 'elev': u'0.000000', 'id': u'http://maps.google.com/maps/00048b5b66b7169311de4'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 1', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 1', 'language': None}, 'poslist': u'39.992191 116.417938\n 39.968254 116.466698\n 39.939568 116.451591\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a51f18e53ea5'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 2', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'
', 'language': None}, 'summary': u'
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 2', 'language': None}, 'poslist': u'39.990536 116.437225\n 39.963963 116.477051\n 39.958702 116.437912\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a520c46d52bd'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'qqdw', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'dsa', 'language': None}, 'summary': u'dsa', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'qqdw', 'language': None}, 'poslist': u'39.987720 116.519913\n 39.947990 116.556641\n 39.959045 116.523003', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a521daa5391e'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'dwqd', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'dwqd', 'language': None}, 'poslist': u'40.034264 116.451241\n 40.015781 116.437225\n 40.011654 116.409363\n 40.033478 116.430305\n 40.034264 116.451241', 'exterior': u'', 'polygon': u'', 'id': u'http://maps.google.com/maps/00048b5b6a52357ab39f0', 'linearring': u''}]}>
__delattr__:
__delitem__:
__dict__: {}
__doc__: None
__eq__:
__ge__:
__getattr__:
dwqd
', 'language': None}, 'summary': u'
dwqd
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'ww', 'language': None}, 'elev': u'0.000000', 'id': u'http://maps.google.com/maps/00048b5b66b7169311de4'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 1', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 1', 'language': None}, 'poslist': u'39.992191 116.417938\n 39.968254 116.466698\n 39.939568 116.451591\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a51f18e53ea5'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 2', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'
', 'language': None}, 'summary': u'
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 2', 'language': None}, 'poslist': u'39.990536 116.437225\n 39.963963 116.477051\n 39.958702 116.437912\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a520c46d52bd'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'qqdw', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'dsa', 'language': None}, 'summary': u'dsa', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'qqdw', 'language': None}, 'poslist': u'39.987720 116.519913\n 39.947990 116.556641\n 39.959045 116.523003', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a521daa5391e'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'dwqd', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'dwqd', 'language': None}, 'poslist': u'40.034264 116.451241\n 40.015781 116.437225\n 40.011654 116.409363\n 40.033478 116.430305\n 40.034264 116.451241', 'exterior': u'', 'polygon': u'', 'id': u'http://maps.google.com/maps/00048b5b6a52357ab39f0', 'linearring': u''}]}>
__getattribute__:
__getitem__:
dwqd
', 'language': None}, 'summary': u'
dwqd
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'ww', 'language': None}, 'elev': u'0.000000', 'id': u'http://maps.google.com/maps/00048b5b66b7169311de4'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 1', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 1', 'language': None}, 'poslist': u'39.992191 116.417938\n 39.968254 116.466698\n 39.939568 116.451591\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a51f18e53ea5'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 2', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'
', 'language': None}, 'summary': u'
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 2', 'language': None}, 'poslist': u'39.990536 116.437225\n 39.963963 116.477051\n 39.958702 116.437912\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a520c46d52bd'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'qqdw', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'dsa', 'language': None}, 'summary': u'dsa', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'qqdw', 'language': None}, 'poslist': u'39.987720 116.519913\n 39.947990 116.556641\n 39.959045 116.523003', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a521daa5391e'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'dwqd', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'dwqd', 'language': None}, 'poslist': u'40.034264 116.451241\n 40.015781 116.437225\n 40.011654 116.409363\n 40.033478 116.430305\n 40.034264 116.451241', 'exterior': u'', 'polygon': u'', 'id': u'http://maps.google.com/maps/00048b5b6a52357ab39f0', 'linearring': u''}]}>
__gt__:
__hash__:
__init__:
__iter__:
__le__:
__len__:
__lt__:
__module__: feedparser
__ne__:
__new__:
__reduce__:
__reduce_ex__:
__repr__:
__setattr__:
dwqd
', 'language': None}, 'summary': u'
dwqd
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'ww', 'language': None}, 'elev': u'0.000000', 'id': u'http://maps.google.com/maps/00048b5b66b7169311de4'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 1', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 1', 'language': None}, 'poslist': u'39.992191 116.417938\n 39.968254 116.466698\n 39.939568 116.451591\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a51f18e53ea5'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 2', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'
', 'language': None}, 'summary': u'
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 2', 'language': None}, 'poslist': u'39.990536 116.437225\n 39.963963 116.477051\n 39.958702 116.437912\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a520c46d52bd'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'qqdw', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'dsa', 'language': None}, 'summary': u'dsa', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'qqdw', 'language': None}, 'poslist': u'39.987720 116.519913\n 39.947990 116.556641\n 39.959045 116.523003', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a521daa5391e'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'dwqd', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'dwqd', 'language': None}, 'poslist': u'40.034264 116.451241\n 40.015781 116.437225\n 40.011654 116.409363\n 40.033478 116.430305\n 40.034264 116.451241', 'exterior': u'', 'polygon': u'', 'id': u'http://maps.google.com/maps/00048b5b6a52357ab39f0', 'linearring': u''}]}>
__setitem__:
dwqd
', 'language': None}, 'summary': u'
dwqd
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'ww', 'language': None}, 'elev': u'0.000000', 'id': u'http://maps.google.com/maps/00048b5b66b7169311de4'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 1', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 1', 'language': None}, 'poslist': u'39.992191 116.417938\n 39.968254 116.466698\n 39.939568 116.451591\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a51f18e53ea5'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 2', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'
', 'language': None}, 'summary': u'
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'\u7ebf\u6761 2', 'language': None}, 'poslist': u'39.990536 116.437225\n 39.963963 116.477051\n 39.958702 116.437912\n 39.959045 116.411079', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a520c46d52bd'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'qqdw', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'dsa', 'language': None}, 'summary': u'dsa', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'qqdw', 'language': None}, 'poslist': u'39.987720 116.519913\n 39.947990 116.556641\n 39.959045 116.523003', 'linestring': u'', 'id': u'http://maps.google.com/maps/00048b5b6a521daa5391e'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'dwqd', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'', 'language': None}, 'summary': u'', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'dwqd', 'language': None}, 'poslist': u'40.034264 116.451241\n 40.015781 116.437225\n 40.011654 116.409363\n 40.033478 116.430305\n 40.034264 116.451241', 'exterior': u'', 'polygon': u'', 'id': u'http://maps.google.com/maps/00048b5b6a52357ab39f0', 'linearring': u''}]}>
__slotnames__: []
__str__:
__weakref__: None
clear:
copy:
fromkeys:
get:
dwqd
', 'language': None}, 'summary': u'
dwqd
', 'guidislink': False, 'title_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/plain', 'value': u'ww', 'language': None}, 'elev': u'0.000000', 'id': u'http://maps.google.com/maps/00048b5b66b7169311de4'}, {'updated': u'Wed, 14 Jul 2010 16:24:08 +0000', 'updated_parsed': (2010, 7, 14, 16, 24, 8, 2, 195, 0), 'title': u'\u7ebf\u6761 1', 'author': u'zjm1126', 'summary_detail': {'base': u'http://maps.google.com/maps/ms?ie=UTF8&hl=zh-CN&vps=1&jsv=255b&msa=0&output=georss&msid=109685068115364659392.00048b5b630141d82b83a', 'type': 'text/html', 'value': u'',
i want to know , is this data useful for me ?
thanks
The patch
http://feedparser.googlecode.com/issues/attachment?aid=-5035140636427960669&name=georss-gml.patch&token=dcfce8c56d5beb3ebf566bc3c16994e2
attached to
http://code.google.com/p/feedparser/issues/detail?id=62
will let you parse GeoRSS of different flavors.