Forum Discussion

kewaynes's avatar
kewaynes
Icon for Helper IV rankHelper IV
3 years ago

Generating Lat/Lon Points on Map

Hi,

 

I have a request from a stakeholder to be able to draw a box on a map and have the lat/lon points show up as tooltips on the corners. Does anyone know of anything that can do this? Is there a cusotm visual perhaps?

5 Replies

  • To draw a box on a map visual in Power BI and have the latitude and longitude points show up as tooltips on the corners, you can use the built-in "Area" selection tool in Power BI. Here's how to do this:

    1. Open your Power BI report and select the map visual that you want to use.

    2. In the Visualizations pane, click the "Area" selection tool. This will allow you to draw a box on the map.

    3. Click and drag on the map to draw a box around the area you want to highlight.

    4. Once the box is drawn, you should see the latitude and longitude points for the corners of the box in the tooltips.

    5. You can customize the appearance of the box and the tooltips by using the formatting options in the Visualizations pane.

    Cheers!

    • kewaynes's avatar
      kewaynes
      Icon for Helper IV rankHelper IV

      Hi Atcerp. Thanks for the reply. Would you mind sharing screenshots? I'm having trouble finding the "Area" selection tool.

  • Hi , kewaynes 

    According to your description, do you mean you want to add a box to show the filtered loctaion's Lat and Lon?

    If this , you can add a "Mul-ti row card" visual and put two measures on this visual:

     

    Lat value = SELECTEDVALUE('Table 1'[Lat])
    Lon value = SELECTEDVALUE('Table 1'[Lon])

     

    Then we can group two visuals and make the card visual above the map visual , like this:

     

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

    • kewaynes's avatar
      kewaynes
      Icon for Helper IV rankHelper IV

      Hi Aniya,

       

      Thanks for the response. What I'm looking to do is to be able to hover over any part of the map and see the lat/lon for that position.