• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Google maps marker on click

    Dashboard Designer & Custom AngularJS Pages
    2
    3
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pikey4
      last edited by

      Is there a simple way that I am un aware of to make a marker in a google map, when clicked on, can link to another ui/page???

      Thanks

      <div class="ma-designer-root" id="7083531f-3799-4038-8d36-d8092ddc6a3e" style="height: 600px; width: 1500px;" ma-maintain-ratio="letterbox" ma-scale-to="ma-ui-page-view">
          <ma-map id="b6d480d5-6d25-4f07-8726-f585b45ffdfa" lat="-32.5" long="119" map-type="roadmap" info-window-theme="dark" desktop-height="400px" mobile-height="600px" zoom="7" style="width: 50%; height: 0px;">
          <marker id="marker1" position="-35.021432, 117.882540" icon="{url: 'img/map-markers/green-dot.png'}" draggable="false" ng-click="$state.go('ui.lockyerHome')"></marker>
         </ma-map>
      </div>
      

      Mango Core version: 3.5.6
      Mango API module version: 3.5.2
      MangoUi module version: 3.5.5
      Platform: 10.14 MacOS Mojave
      Chrome: Version 70.0.3538.110 (64-bit)

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire
        last edited by

        Hey @Pikey4 yeah its a bit strange with the <ma-map> component, you have to use the on-click attribute with the <marker> components inside of it. This is behaviour from the underlying frame work that we use - https://ngmap.github.io/#/!infowindow_ng_click.html

        Have a read of our example page if you haven't seen it already - http://yourmangodomain:8080/ui/examples/utilities/google-maps

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • P
          Pikey4
          last edited by

          Thanks Jared,

          I think I understand it a bit better now. Will see how we go setting a few markers up.

          Mango Core version: 3.5.6
          Mango API module version: 3.5.2
          MangoUi module version: 3.5.5
          Platform: 10.14 MacOS Mojave
          Chrome: Version 70.0.3538.110 (64-bit)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post