Spectrum Spatial (SSA/LIM)

 View Only
  • 1.  Using ol-ext library as external library in SSA 2022.1 extensibilities

    Posted 03-22-2023 13:44

    Hi!

    I'm wondering how to make this external library work now while upgrading to SSA 2022.1. We used some modules from 'ol-ext' library previously in our extensibilities and everything worked fine.

    So, could anyone provide an example how to reference 'ol-ext' library correctly in CustomAnalystModuleConfig.json and how to do import of some module to use it in component.ts? Let's say I would like to use ol.interaction.Transform from ol-ext library.

    Any advice is appreciated.

    Thank you!



    ------------------------------
    Karli Kannel
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: Using ol-ext library as external library in SSA 2022.1 extensibilities

    Posted 03-22-2023 15:15
    Edited by Karli Kannel 03-23-2023 06:06

    Could there be some conflict with using ol-ext now with OpenLayers version 6.5.0?

    It just doesn't seem to get the import and reference ol-ext library when I load ol-ext functions in extensibility in SSA project.


    ------------------------------
    Karli Kannel
    Knowledge Community Shared Account
    ------------------------------



  • 3.  RE: Using ol-ext library as external library in SSA 2022.1 extensibilities

    Employee
    Posted 03-30-2023 04:56
      |   view attached

    Hi Karli

    It seems the ol-ext library may not be getting fully loaded. I have attached an example (zipped up with code and guidance note) which shows how to import external js libraries via extensibility for the 2022.1 SSA release. Please see if this helps. If not I would suggest approaching the Precisely technical support team and we can take a look at it further.



    ------------------------------
    Mustafa Ismail
    Precisely Software Inc.
    Watford
    ------------------------------



  • 4.  RE: Using ol-ext library as external library in SSA 2022.1 extensibilities

    Posted 05-03-2023 19:24

    Hi, thanks for that example.
    Been trying to load ol-ext library in different ways, but can't figure it out fully. In some cases, I see it's been loaded, but it gives error "ol is not defined".




    ------------------------------
    Karli Kannel
    Knowledge Community Shared Account
    ------------------------------