2 Replies Latest reply: Jul 30, 2013 2:55 PM by a d RSS

    QV9.0 Version - google map is not showing any map

      Qliview version 9.0 - google map is not showing .

       

       

      Currently I am having in the code


      max_zoom_level = 17; //maximum value 17

      var_pi180=  '=pi()/180';
      var_lat_offset= '0';
      var_mc2=  '=256*pow(2,$(var_zoom))';
      var_mc1=  '=256*pow(2,($(var_zoom)-1))';
      var_maptype= '=if(isnull(only(maptype)),fieldvalue( '&chr(39)&'maptype'&chr(39)&', 1 ),maptype)';
      map_size_x=     '640';
      map_size_y=     '400';

      var_mid_lat= '=min(Latitude)+(1+var_lat_offset)*((max(Latitude)-min(Latitude))/2)';
      var_mid_long= '=min(Longitude)+(max(Longitude)-min(Longitude))/2';
      var_zoom=  '=max(aggr(if(max(round(256*pow(2,(_zoom_level -1)))+(Longitude *((256*pow(2,_zoom_level ))/360)) )-min( round(256*pow(2,(_zoom_level -1)))+(Longitude  *((256*pow(2,_zoom_level ))/360)) ) < map_size_x AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((Latitude)*pi()/180)))/(1-(sin((Latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((Latitude)*pi()/180)))/(1-(sin((Latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))< map_size_y,_zoom_level,1),_zoom_level))';

      SET HidePrefix='_' ;

      _zoom_level:
      Load RecNo( ) as _zoom_level autogenerate(max_zoom_level);

      maptype:
      LOAD * INLINE [
          maptype, maptype_f
          roadmap, Road
      mobile, Mobile
      satellite, Satellite
      terrain, Terrain
      hybrid, Hybrid
      ];

      MilesArea:
      LOAD * INLINE [
      MilesArea
      10
      20
      30
      40
      50
      100
      200
      10000
      ];

       

      Distance Calculation used in the variable

      =

      '(sin($(LatDist)/2) * sin($(LatDist)/2) + cos(OriginLat/57.2957795130823) * cos(Latitude/57.2957795130823) * sin($(LonDist)/2) * sin($(LonDist)/2))'

       

       

      Do I need to change anything in the Latitude and Longtitude.

       

      do we need to get new

      gmap_key =    from google if the API is new.

       

      I am looking for US map  Latitude and Longtitude if there any new API from Google.

       

       

       

      Advance Thanks for your help.