Hello guys,
I just came from two hours of really heavy debugging, I’m not a savvy developer. The problem I had is that in my big map my locations wouldn’t display. After testing several stuff and even reinstalling the plugin the problem persisted.
Happens that whenever the JSON string is not valid, none of the markers will render. This is the JavaScript error if you ever come with this problem:
SyntaxError: JSON Parse error: Unterminated string
Here was my error after debugging the JSON string from:
[PLUGIN]/geodirectory-functions/map-functions/js/map.js
http://f.extd.co/1jpD4/1iIjSVwH
Note the white areas before and after.
jQuery.parseJSON(data);
Code above will check the validness of the JSON string before parsing, so there’s the error.
If you ever come up with this problem, removing white space might be the solution.