Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Toggle Map AutoZoom

from Spotfire.Dxp.Application.Visuals.Maps import MapChart

#map is a script parameter pointing to your map
m = map.As[MapChart]()

#Toogle Map AutoZoom
m.AutoZoom = not m.AutoZoom

2 comments:

Anonymous said...

I tried this script and it doesn't work for the new map charts in Spotfire 6.0. I had an old file that was still 5.5 and the script works there without any issues.

Nick Losier said...

Confirmed this actually does work in 6.5. Make sure that you have added a parameter 'map' which connects to your map visualization.