Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extent inside of IItemAdd interface has incorrect type #921

Closed
JonnyDawe opened this issue Sep 27, 2021 · 1 comment
Closed

Extent inside of IItemAdd interface has incorrect type #921

JonnyDawe opened this issue Sep 27, 2021 · 1 comment

Comments

@JonnyDawe
Copy link

JonnyDawe commented Sep 27, 2021

version: 3.03

The extent property inside of the IItemAdd interface is set to be number[][], but the REST API docs looks to require the extent to be either a comma separated list of numbers or an array of numbers [xmin,ymin,xmax,ymax] as per the item parameters docs

If we pass in an extent as number[][], e.g. [[xmin,ymin],[xmax,ymax]], then the extent is incorrect in the request made to createItemInFolder, e.g.

image

Note:
This behaviour has changed since "@esri/arcgis-rest-portal": "2.13.1" where previously extents of the format number[][] were correctly included in the additem request made to the portal.

Many of our existing Webmap items store the extent in their item definition as number[][], as shown in the below image, meaning we are having to write extra code to fix the definitions into number[] when publishing new webmaps which use these as a template.:
image

@gavinr
Copy link
Contributor

gavinr commented Sep 20, 2022

Thanks for the report, and sorry for the delay. We plan to fix this under #1023.

@gavinr gavinr closed this as completed Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants