Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Google Maps en Qlik View

Hola a todos, les comento que tengo armado un archivo donde grafico ventas utilizando google maps, el mismo funcionaba bien hasta 2013 pero ahora no logro ver el mapa.

Les paso abajo el código para que me ayuden a detectar el error y las posibles soluciones.

Desde ya muchas gracias.

---------------------------------------------------------------------------------------------------------------------------------------

// Google Maps en QlikView

// Google Maps Key. Obten la tuya en http://code.google.com/apis/maps/signup.html

gmap_key = '------------------------';

max_zoom_level = 7; //valor máximo = 17

// Variables requeridas para calcular mapa

var_pi180=      '=pi()/180';

var_lat_offset= '0';

var_mc2=        '=256*pow(2,$(var_zoom))';

var_mc1=        '=256*pow(2,($(var_zoom)-1))';

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

var_maptype=    '=if(isnull(only(maptype)),fieldvalue( '&chr(39)&'maptype'&chr(39)&', 1 ),maptype)';

map_size_x=     '300';

map_size_y=     '300';

SET HidePrefix='_' ;

// Campo Requerido para calcular el mejor nivel de zoom

_zoom_level:

Load RecNo( ) as _zoom_level autogenerate(max_zoom_level);

maptype:

LOAD * INLINE [

maptype

roadmap

mobile

satellite

terrain

hybrid

];

0 Replies