Issue with geojson layer in Perspective Map

I am having an issue with Perspective Map and I wanted to see if anyone else has experienced this:

If I have a Map and I manually create the structure:

The map loads fine.

If I bind features to anything and hit save, the map, in both the browser and designer, will show

with the error: can't access property "length", s.features is undefined. This is also shown in the js console.

If I reload the web page it works again. It seems to only break on designer save.

If I set the prop to Persistent, that also seems to fix it.

Binding lower level props or the whole array (layers.other.geoJSON[0]) also seems to work fine.

Any thoughts? I’ll try sending this to support soon if this isn’t a me thing

I should add that the reason I want to bind features specifically is that this is easy to get from Postgresql, and I want to have a styleOptions field. Its nice when this field is known to Designer, rather than being set from a script, so that its easier to use

Bindings that require a callout to a DB or across the network will supply a null until the data arrives. You should place the binding on a custom property, and use coalesce() to substitute a default value for features until the null is replaced.

1 Like

ahh, perfect! I thought there would be an easy way to do this. Thank you!

1 Like