An error was reported when converting gps coordinates to Tencent coordinates.

quote Tencent Map in the vue project, use the navigator.geolocation.getCurrentPosition of H5 to obtain the coordinates, and then convert the coordinates into Tencent coordinates. According to Tencent"s document, I wrote as follows:

    TMap("WQCBZ-4FF3F-WI4JL-NJGAX-MECTJ-GMFWA").then(qq=>{
    //
    var centerPort;
        //
     function getLocation()
     {
            if (navigator.geolocation)
               {
                 console.log("")
                 navigator.geolocation.getCurrentPosition(showPosition,errorHandler);
               }
            else{console.log("")}
                } 
     function errorHandler(err) {
            if(err.code == 1) {
               alert("Error: Access is denied!");
            }else if( err.code == 2) {
               alert("Error: Position is unavailable!");
            }
         }
     function showPosition(position)
            {

                var lat=position.coords.latitude; 
                var lng=position.coords.longitude;
                console.log(lat);
                console.log(lng);
              qq.maps.convertor.translate(new qq.maps.LatLng(lat,lng), 1, function(res){
                 console.log(res);
                //
                centerPort = res[0];

            })
          }
getLocation();
    })
    

is successful in getting the coordinates of gps, lat and lng, are also obtained in the method showPosition, but in executing the statement

 qq.maps.convertor.translate(new qq.maps.LatLng(lat,lng), 1, function(res){
                     console.log(res);
                    //
                    centerPort = res[0];
    
                })
            

console reported an error. The error is as follows

clipboard.png

excuse me, why is this? How can the coordinate transformation be carried out correctly?

Mar.15,2021

<script type="text/javascript" charset="utf-8" src="http://map.qq.com/api/js?v=2.exp&key=YOUR_KEY&libraries=convertor"></script> convertor
console.log(qq.maps.convertor);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ceeb3a-39c0c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ceeb3a-39c0c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?