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

Map

Hi  ,

  i wanted to know how to  add the sattlite option in the google map , i have implemented the google map .

   Thanks ,

    Kane

6 Replies
antoniotiman
Master III
Master III

set field maptype as 'satellite'.

You can change from list box of variable maptype.

Regards

Not applicable
Author

When you have the following code for the map:

='http://maps.google.com/maps/api/staticmap?center='   &   num(var_mid_lat, '##############', '.', ',' )   &   ','   &   num(var_mid_long, '##############', '.', ',' )   &   '&zoom=$(var_zoom)'   &   '&maptype='&var_maptype   &   '&size='&map_size_x&'x'&map_size_y   &   '&key='& 'AIzaSyAABZIVacmXaH_m5XNM2PzcJo3uDr12Rzk' & '&sensor=false'

You have a variable called var_maptype.

Use the following inline statement in your load script:

maptype:

LOAD * INLINE [

    maptype

    roadmap

  mobile

  satellite

  terrain

  hybrid

];

Then you can use a listbox with the maptype field and create a variable var_maptype with the following formula:

=if(isnull(only(maptype)),fieldvalue( 'maptype', 1 ),maptype)

Hope this helps.

Greetings,

Marc

antoniotiman
Master III
Master III

Maptype is a field in inline of script (see script).

The expression of 'Colors' of object map contains maptype.

You  select  value of  maptype in 'satellite'.

You create object list box of field maptype and you select value.

Regards,

Antonio

Not applicable
Author

Hi Antonio

    iam sending u my file could u plz look into this ,

    Thanks .

     Kane

antoniotiman
Master III
Master III

you create object input for variable "var_maptype" and set value 'satellite' in this.

Antonio

Not applicable
Author

Thanku sir ,

      its working now