Spectrum Spatial (SSA/LIM)

Welcome to the Spectrum Spatial (SSA/LIM) community - start a discussion in the discussion tab or join in a conversation.

SSA Documentation  LIM Documentation  SSA Ideas  LIM Ideas

Discussions

Members

Resources

Events

 View Only
  • 1.  Activating Left pane with feature info on feature click - SSA Extension

    Posted 08-24-2018 06:25

    I've written an extension which adds a vectorlayer to the underlying openlayers map object. But the features are no longer clickable.

    If I add a layer through ssa admin console, clicking on the features, activates left pane and shows all the row information for that feature.

    How can I trigger (activate) left pane programmatically through extension.



  • 2.  RE: Activating Left pane with feature info on feature click - SSA Extension

    Posted 08-28-2018 01:44

    I've achieved a solution though couldn't find a SSA way of doing it.

    So it turns out, SSA features can be overridden in a usual angular way i.e. the way you would make two sibling components interact with each other in regular angular code.

    This is what I did:

    1. Created a shared service with Subject and Behavior from reactive javascript (rxjs) i.e.

    @Injectable()

    export class DataSharedService {

     

    constructor() {

    this._instance = Data.singleton();

    }

    _instance: Data = null;

    singleton(): Data {

    return this._instance;

    }

     

    public sendMessage(message:any) {

    this._instance.sendMessage(message);

    }

     

    public getMessage() {

    return this._instance.getMessage();

    }

     

    and then subscribed to the method in sibling components like below:

    Component 1:

    $this.dataSharedService.sendMessage(feature.N);

    Component 2:

    this.dataSharedService.getMessage().subscribe(message => {

    ....

     

     

     



  • 3.  RE: Activating Left pane with feature info on feature click - SSA Extension

    Posted 08-29-2018 06:57

    Hi Manish,

    We do have a SSA Developer Group which would be the best place to ask questions of this nature: https://li360.pitneybowes.com/s/group/0F980000000H1ccCAC/ssa-developer-community

    The group is open to anyone, so please feel free to join.

    Andy