Issue for ej2-vue-maps: Unexpected token < in JSON at position 0

Hello,

I am trying to integrate the multilayer-maps into my project.
However, I got the following problem. And the map doesn't render.
Can anybody please help me with this issue? Thank you.



3 Replies

SB Swetha Babu Syncfusion Team April 9, 2020 10:27 AM UTC

Hi Zhengqi, 

Thank you for contacting Syncfusion support. 

We are not able to reproduce the reported issue. So we have created a sample based on your requirement to render multiple layers using GeoJSON files. Please find the below sample link for your reference. 


Please let us know if the reported issue is resolved with the provided sample. If not, please modify the above sample and share the same to us. It will be helpful for us to analyze further and assist you better. 

Regards, 
Swetha Babu


FK fauzan khalif masulili April 27, 2021 03:31 AM UTC

Hi Swetha, 


I have similar issue, I trying using the code that you make in sample but it's still giving me the same error. but when I try running your sample it's works fine. I don't what should I do with this issue.


SB Swetha Babu Syncfusion Team April 27, 2021 01:50 PM UTC

Hi Fauzan, 
 
Thank you for your update. 
 
In the sample application that we provided in previous update, we have rendered the shape maps from the local location. Please ensure that the files are in proper location and rendered in the Maps control. The reported issue will be caused when the JSON file for shape data is not in proper JSON format. Please ensure that the JSON file or object is in proper format. 
 
If you are still facing the reported issue, please share us your code snippet or sample application to reproduce the reported issue. It will be helpful for us to analyze further and assist you better. 
 
Regards, 
Swetha Babu

Loader.
Up arrow icon