Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

How to add latitude to the coordinate?



  • Hi!
    How to add latitude to the coordinate?
    I get the coordinate like this:

    visibleRegion.boundingGeoRectangle().topLeft
    

    How to add to coordinate

    visibleRegion.boundingGeoRectangle().width / 100
    


  • it is not work

                    a = visibleRegion.boundingGeoRectangle().topLeft
                    a.setLatitude(a.latitude + visibleRegion.boundingGeoRectangle().width )
    


  • it is work:

                    console.log("широта     :" + visibleRegion.boundingGeoRectangle().topLeft.latitude)
                    var a = visibleRegion.boundingGeoRectangle().topLeft
                    a.latitude = 56
    
                    console.log("широта + 1 :" + a)
    

Log in to reply