arcgis custom places loaded from file or db

1145
6
05-11-2017 12:56 AM
AndTom
by
New Contributor

Hello since Google maps can load custom places from .xml file, what about Arcgis, I found that they have example, but its saved in .json format, while i retrieved their example .json and put on my local server seems it can't load, so how to load custom places using Arcgis? Example: https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=fl_featureCollection

Tags (2)
0 Kudos
6 Replies
FC_Basson
MVP Regular Contributor

Did you validate the JSON to check it is correct?  And is you Web Server configured to serve JSON MIME types?

0 Kudos
AndTom
by
New Contributor

No, how to configure it?

0 Kudos
FC_Basson
MVP Regular Contributor

Well, what what web server are you running?  You could probably find the procedure for setting the allowed MIME types through an online search.  I'm not saying that is definitely the issue here, so maybe you can show some code?

0 Kudos
AndTom
by
New Contributor

My server is XAMPP based on windows for local server testing.

0 Kudos
AndTom
by
New Contributor

Well enabled: 

application/vnd.geo+json

application/geo+json

what to do next?

0 Kudos
AndTom
by
New Contributor

Or at least where i could find in detail explained how to set up custom places?

0 Kudos