Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GoogleMaps are not working

I have code like below in my script.

gmap_key = 'xx';


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);


Anything changed in the Google API.

I am looking for example for USA google maps.

Advance Thanks for Your help .


3 Replies
Not applicable
Author

solved

shree909
Partner - Specialist II
Partner - Specialist II

Hi,  even i am looking to do for usa google maps.

it works fine but when i reload it for the second time its not working and when i do fast change to some pivot table then it starts working.

Did u come up with this isue before

????????????

Not applicable
Author

no