question

RyanChoe-1767 avatar image
0 Votes"
RyanChoe-1767 asked IoTGirl answered

How do you add a GeoJSON file into Azure Maps Typescript?

I am trying to add a local GeoJSON file into my Azure Maps (Angular) and cannot add the file as a datasource due to Argument of type '{}' is not assignable to parameter of type 'FeatureCollection | Geometry | Feature<Geometry, any> | GeometryCollection | Shape | (Geometry | Feature<...> | Shape)[]'. Type '{}' is missing the following properties from type '(Geometry | Feature<Geometry, any> | Shape)[]': length, pop, push, concat, and 26 more.

How can I add the GeoJSON object as a new datasource?

azure-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IoTGirl avatar image
1 Vote"
IoTGirl answered

I am afraid I can't be much help with Angular, but Azure Maps supports GeoJSON in the Web SDK as documented here: https://docs.microsoft.com/en-us/azure/azure-maps/create-data-source-web-sdk

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.