Camera FOV Serialisation

254
2
10-18-2020 04:29 PM
JethroLeevers
New Contributor III

The toJSON method on the ersi/Camera Object does not serialise the fov property of the camera.

I know I can just access the value from the object directly but I did experct the toJSON return to contain this value. Also the correspoding functionality in fromJSON.

Is this an oversight or by design?

0 Kudos
2 Replies
RalucaNicola1
Esri Contributor

Hi Jethro, thanks for your feedback, that's a good point, I'm currently discussing with my colleagues about adding the property to the `toJSON` method. Initially there was no platform support for this property, so we didn't serialize it. 

How do you use the serialization in your application? do you want to save webscenes to the ArcGIS platform with different fields of view?

0 Kudos
JethroLeevers
New Contributor III

Yes, i currently serialise the viewpoint and use it in a similar way to the bookmarks in 2D.

It would be nice if the fov animated with the goTo function aswell.

0 Kudos