jamesdales / IconMapSupport

MIT License
4 stars 1 forks source link

Error linking to GeoJson files #53

Open cpelay opened 3 weeks ago

cpelay commented 3 weeks ago

Hi I can load the sample geojson link provided in the sample report (https://iconmap.azurewebsites.net/mapresources/lad.json) in my PBI dash

however, i keep getting the following error when trying to link to my own geojson files: "An error occurred loading the GeoJson file - in most cases this is caused by CORS policy on the hosting website."

So far, I've tried a few different hosting solutions including Google Cloud https://storage.googleapis.com/spatial_files/Subdivision_Boundary_MONROE_SIMPLIFIED_SUBS_GEOJSON_2024-05-16.geojson

and, 3rd party hosting:

https://enervated-curvature.000webhostapp.com/wp-content/Subdivision_Boundary_MONROE_SIMPLIFIED_SUBS_GEOJSON_2024-05-16.geojson

Privacy settings are set to public in both cases and I am able to view this file in both locations in my browser window.

Screenshot 2024-06-09 231526

Any suggestions?

Thank you.

PLPaulus commented 3 weeks ago

Hi, I host my geojson files in a repository on Github and it works fine. Use the URL for the "Raw" file.

cpelay commented 3 weeks ago

That worked! Thanks so much

On Tue, Jun 11, 2024, 4:59 AM PLPaulus @.***> wrote:

Hi, I host my geojson files in a repository on Github and it works fine. Use the URL for the "Raw" file.

— Reply to this email directly, view it on GitHub https://github.com/jamesdales/IconMapSupport/issues/53#issuecomment-2160171471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AONDNCCED7UJYUIUKI5M2QDZG236DAVCNFSM6AAAAABJBO3XQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRQGE3TCNBXGE . You are receiving this because you authored the thread.Message ID: @.***>