4 Replies Latest reply on Jun 19, 2017 12:16 AM by Ankit Gupta RSS
    tlichtenberger-2 Apprentice

    making the google maps widget visible/invisible dynamically

    Hello everyone!

     

    Currently I am working on two google maps widgets which are superimposed. The two google maps widgets are showing exactly the same locations, but

    with different marker icons. What I want to do is to make the overlying google map visible/invisible based on the value of a boolean property which is defined in my helper thing.

     

    In the following, I show you how I tried to realize that:

    1) I have declared a boolean value named "IsVisible" that emits an event every time the value changes:

    2) I have implemented a custom service which gets executed everytime a specific value has changed and sets the "IsVisible"-property to the correct value.

    3) Then I have binded the event "ServiceInvokeCompleted" of my custom service with the imported service "GetBooleanPropertyValue" and have defined the

         needed PropertyName parameter as "IsVisible".

    4) then I have binded the boolean Output of the function "GetBooleanPropertyValue" with the visible-property of the overlaying google maps widget.

     

     

    Any suggestions on how to solve this problem?

    Thank you so much in advance.

     

    Best regards,

    Theresa