web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint & GeoJSON
Power Apps
Unanswered

SharePoint & GeoJSON

(0) ShareShare
ReportReport
Posted on by 1,146

Thank you for taking the time to read my question.

 

I have added the new Map control from the Media menu and have the Shape Drawing (preview) features turned on. I am able to draw a shape, save the shape GeoJSON data to a collection and then view the shape on a second map by joining the second map to the collection.

 

I then took the GeoJSON data and put it in a SharePoint list and set my second map to the SharePoint list but the map does not work the same. The shape sort of shows up but without the label and without any map "stuff" behind the shape... it's just gray.

 

The GeoJSON data is in a multi line field in my SharePoint list.

I noticed that when I view the collection in a gallery, and copy the GeoJSON to a text file, the GeoJSON data is in triplicate... don't know why. "type": "FeatureCollection" is in the text file 3 times with all the other data and coordinates. I tried adding just the one instance of the data to SharePoint and also added all the data to SharePoint, no difference.

 

 

Is there somethin I need to do differently to make the GeoJSON data work from SharePoint?

 

Thanks

Categories:
  • iwonder Profile Picture
    1,146 on at

    Update:

     

    I collected the data directly to my SharePoint list. The data was not in triplicates and all the text that had double quotes around it, now has double double quotes

     

    "something"

    becomes

    ""something""

     

    and the whole thing, when exported to a CSV file is in double quotes.

     

    Tried updating my GeoJSON string but still no success.

  • iwonder Profile Picture
    1,146 on at

    I have it working and the double quote part has nothing to do with it. Not sure what I changed exactly but it's working. No need for quotes around the whole GeoJSON string. I think SharePoint did that on export to CSV.

  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    Did you still have a question then or did you manage to get this figured out?

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • iwonder Profile Picture
    1,146 on at

    Hi Alex,

     

    I have it working. I don't know what I did wrong exactly but it's working. Now I just have to plug my coordinates in.

     

    Thanks for the reply.

     

    Not sure if I should start a new thread but...

     

    In the documentation page I see this example:

    {"type":"FeatureCollection","properties":{"kind":"state","state":"WA"},"features":[{"type":"Feature","properties":{"kind":"county","name":"Benton","state":"WA"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-119.8759,46.6287],[-119.6240,46.6452],[-119.5144,46.7273],[-119.4542,46.6780],[-119.2680,46.5192],[-119.2680,46.2727],[-119.0434,46.1906],[-118.9448,46.0756],[-118.9393,46.0263],[-118.9886,45.9989],[-119.1256,45.9332],[-119.4323,45.9167],[-119.5692,45.9277],[-119.6678,45.8565],[-119.8704,45.8346],[-119.8649,46.0427],[-119.8759,46.6287]]]]}}]}

     

    Why is "kind" used?

     

    When I collect the GeoJSON I see that there is a "label" option and if used this is the label of the shape. In the example, the shape label comes from a different column in the Excel data. I'm wondering if the idea is to define properties and use them in the app, or are we to put the property data in columns in Excel/SharePoint/... and reference it that way?

     

    I hope this is clear.

     

    Thanks again,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard