Warning when upgrading to Spotfire 10

TIBCO has deprecated the JQueryUI Javascript library in the latest Spotfire 10.0 release

TIBCO Community pages show us how to use JQuery properly

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


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.