Spectrum Spatial (SSA/LIM)

 View Only
  • 1.  Custom Templates for MRR Grids

    Posted 03-05-2018 10:05

    In SSA 12.1 when clicking on a grid overlay the default template simply says ‘Grid Cell Value’. 

    Is it possible to use a custom template as I wish to include a link to an external metadata document, and to also highlight the fact the value is derived and not absolute as it is for our public facing portal.

    Is there an internal field name SSA uses for grids?

    Many thanks.



  • 2.  RE: Custom Templates for MRR Grids

    Employee
    Posted 03-14-2018 03:56

    @Andy d'Andilly?  or @Mustafa Ismail?, would one of you know the answer to this question? 



  • 3.  RE: Custom Templates for MRR Grids

    Employee
    Posted 03-15-2018 07:31

    Darren, engineering is looking into this at the moment. First to see if we do support it with the currently 12.1 but also to see if we do support it with the new InfoTemplate Designer coming in v12.2.



  • 4.  RE: Custom Templates for MRR Grids

    Posted 03-15-2018 13:34

    Hi Darren - it is possible to output all of the attribute data for a table in JSON format using {{feature.featureAttributes}}. The template below shows this and also a few other useful attributes like the clicked XY.

    <div class="customCalloutData">

    <div> FTR-ID = {{feature.id}}</div>

    <div> TABLE-REF = {{feature.tableRef}}</div>

    <div> X-CLICK = {{coord.x}}</div>

    <div> Y-CLICK = {{coord.y}}</div>

    <div> MAP-SRS = {{$root.map.projection}}</div>

    <div> ATTRIBUTES = {{feature.featureAttributes}}</div>

    </div>

     

    In the case of MRR it will show JSON like this {"Grid Cell Value":58}

    It was not possible to output just the value as the "Grid Cell Value" is not working as a column name.

    You can add this to a hidden input and read it in JavaScript if needed.

    Let me know if this helps.