Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories API Maps
Created by Guest
Created on May 23, 2017

Add Coordinates from Right Click on Map Chart to API

In Spotfire 7.9 right clicking the MapChart will generate coordinates of that location. I am asking that the Longitude and Latitude be available through the API so they could be saved to document properties for reference using Python or TERR.

  • Attach files
  • Guest
    Reply
    |
    Jun 12, 2017

    I'm not in software engineering, I'd say as your mouse would hover over the MapChart generating a set of coordinates. If the user wanted to capture them for use in a data function or calculated column they should have a simple "out of the box" way to do it that does not require intensive code/resources. Access through the API through a new property in the MapChart would be good enough. 99% of users are not capable of developing Tools to extend the platform.

  • Admin
    Magnus Rylander
    Reply
    |
    Jun 11, 2017

    Hi Manuel, the advantage with the custom tool approach is that your custom code automatically gets the right context: triggered when right click occur and the active map chart and selected coordinates are sent to the custom code. Could you provide some more details on how you would expect the proposed API to work?

  • Guest
    Reply
    |
    Jun 2, 2017

    Magnus, very good information. Even though that is available through the SDK, a novice or new user to Spotfire won't have the resources or capability to achieve what you describe. In my opinion an easier mechanism should be available that does not require development of custom tools within the software.

  • Admin
    Magnus Rylander
    Reply
    |
    Jun 2, 2017

    In 7.9 there is a new tool context class, MapChartCoordinatesContext, for this purpose. A custom tool can be created with this context, and will automatically be called when the user right clicks in a map chart. This is illustrated in the MapChartRightClickCoordinatesTool example that is shipped with the 7.9 SDK.