Select to view content in your preferred language

MapView Background Color

32
0
4 hours ago
james-rae
New Contributor III

Hi, this is more of a "report" since I was able to get something working. Might be helpful for future searchers, and a chance there's a missing binding/watcher on a property the SDK team can look into.

 

If I create a new MapView and provide a  background: { color: myValue }in the constructor parameter, the colour is reflected on the page.

 

After creation, if I set the color property on the view to a new Color object, nothing gets updated. The only way to get it to update the page is to set the background property to a new ColorBackground object.

 

Workable, but nothing in the docsite hints that color cannot be directly updated (I'd suggest it should, but I'm just some guy!)

0 Kudos
0 Replies