Spectrum Spatial (SSA/LIM)

 View Only
  • 1.  How to use Openlayers interactions in extensibility component

    Posted 04-05-2019 07:15
    Hi!

    I have another question about extensibility. How can I use Openlayers interactions, for example ol.interaction.translate or ol.interaction.pinchrotate, in my extensibility component. The aim of this would be rotating and moving vector feature on map canvas after it has been created with AddVectorLayerAction. As figuring this out be myself is taking ages, I would be very grateful if someone can help me with finding solution,

    Regards,
    Ott Koik

    ------------------------------
    Ott Koik
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: How to use Openlayers interactions in extensibility component
    Best Answer

    Posted 04-29-2019 11:42
    Hi Ott

    One of engineering team members has provided an example SSA component for how this can be done.

    It is attached below.

    The component adds a world map as a vector layer and then allows the user to select and to drag/move any of the countries.

    The PDF has the instructions and overview of the component and the ZIP has the code.

    ------------------------------
    Mustafa Ismail
    Product Architect
    Pitney Bowes
    London UK
    ------------------------------



  • 3.  RE: How to use Openlayers interactions in extensibility component

    Posted 04-30-2019 05:31
    Hi!

    Thank you for your answer. This works perfectly!

    ------------------------------
    Ott Koik
    Knowledge Community Shared Account
    ------------------------------



  • 4.  RE: How to use Openlayers interactions in extensibility component

    Community Manager
    Posted 05-01-2019 08:52
    Hi Ott,

    I'm glad you were able to find an answer here in the community! I wanted to ask you if you would be so kind as to mark that answer as the "Best" answer for this thread, so that anyone else with this question can find it easily in the future.

    The steps are very easy:
    1. Click the arrow next to "reply inline" on the post that answered your question
    2. Choose "Make Best Answer"

    That's it!

    Thank you for being a part of the community. :)

    ------------------------------
    Sydney Lawton
    Community Manager
    ------------------------------