Spectrum Technology Platform

 View Only
  • 1.  Open maps to a GIS object by passing the table name, column name and object value into a link

    Posted 04-23-2022 02:40
    Is it possible to get SSA to zoom to a given gis object within a configuration using a link like

    /connect/analyst/mobile/#/main?mapcfg=%2FAnalyst%2FNamedProjects%2FInfrastructure_Water_and_Sewer&queryTable=[tablename]&queryColumn=[columnname]&queryValues=[values]

    I would like to be able to trigger Maps to open to a specified asset ([values]) in a specific column ([columnname]) in a specific table ([tablename]).

    How can this be achieved?

    ------------------------------
    George Corea
    Mangoesmapping
    MOOMIN QLD
    ------------------------------


  • 2.  RE: Open maps to a GIS object by passing the table name, column name and object value into a link
    Best Answer

    Posted 04-25-2022 05:52
    Edited by George Corea 04-25-2022 18:13
    Hi George,

    It took us a while to figure this one out but eventually managed to get it working.  Here is an example of a query we use for our public Planning Applications searches:
    https://ssa.camden.gov.uk/connect/analyst/mobile/#/main?lang=en-gb&mapcfg=PlanningExplorer&queryTable=/BusinessMaps/PlanningExplorer/PlanningExplorerApplications&queryColumn=Title&queryValues=566285

    Two things that caused us issues were:
    1. This sounds simple but it caught us out for a while - make sure you use a map config which contains a Spectrum Spatial Map which contains the Layer (tablename) you wish to query.
    2. Use the full Spatial Manager path for the [tablename], e.g. use "/BusinessMaps/PlanningExplorer/PlanningExplorerApplications" instead of just "PlanningExplorerApplications"
    Hope that make sense and provides you some hints for getting this running.

    ------------------------------
    Paul McNicholas
    GIS Administrator
    London Borough of Camden
    ------------------------------



  • 3.  RE: Open maps to a GIS object by passing the table name, column name and object value into a link

    Posted 04-25-2022 18:13
    Edited by George Corea 04-25-2022 18:14
    Thanks Paul. #2, adding the repository path to the file worked.

    So it's
    https://[SpectrumServer.com]/connect/analyst/mobile/#/main?mapcfg=[Config_Name]&queryTable=[REPOSITORY_PATH]/[tablename]&queryColumn=[columnname]&queryValues=[values]


    ------------------------------
    George Corea
    Mangoesmapping
    MOOMIN QLD
    ------------------------------