I am currently developing an own web application using KothicJS and Leaflet to render a map overlay. But I am having some problems to get this application running.
In my browser's Javscript console I get this error:
Uncaught ReferenceError: s_everything is not defined
This error is caused by the Javascript stylefile.
My stylefile, which I generated with _mapcssconverter.py, contains these lines at the end of the function restyle:
if (!K.Utils.isStyleUseful(s_default)) {
style['default'] = {};
for (var attrname in s_everything) { style['default'][attrname] = s_everything[attrname]; }
for (var attrname in s_default) { style['default'][attrname] = s_default[attrname]; }
}
return style;
The stylefile on the example page (http://kothic.org/js/osmosnimki.js) is a bit different at this part of the code and does not contain _severything:
if (!K.Utils.isEmpty(s_default)) {
style['default'] = s_default;
}
if (!K.Utils.isEmpty(s_centerline)) {
style['centerline'] = s_centerline;
}
if (!K.Utils.isEmpty(s_ticks)) {
style['ticks'] = s_ticks;
}
if (!K.Utils.isEmpty(s_label)) {
style['label'] = s_label;
}
return style;
Why is there a difference between my file and the example file?
I hope you can help me.
Hello,
I am currently developing an own web application using KothicJS and Leaflet to render a map overlay. But I am having some problems to get this application running.
In my browser's Javscript console I get this error: Uncaught ReferenceError: s_everything is not defined
This error is caused by the Javascript stylefile. My stylefile, which I generated with _mapcssconverter.py, contains these lines at the end of the function restyle:
The stylefile on the example page (http://kothic.org/js/osmosnimki.js) is a bit different at this part of the code and does not contain _severything:
Why is there a difference between my file and the example file? I hope you can help me.
Regards Alex