Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

google map zoom slider query

Hi all,

I have a google map in my application with a slider which zooms in and out.

i was wondering if there was a way i could reverse the slider as currently if i slide up it zooms out and slide down it zooms in but usually its the other way around, so i want the map to zoom in when i slide up and zoom out when i slide down.

does anyone have any ideas please?

14 Replies
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi Jonathan,

yep i can see that and i have done the same. but i cant see either vZoomValue or %Zoom_Level in the chart itself. so how does it know to zoom in and out from the slider.

the reason i ask is that my map won't change by using the slider that you are using but it will change using my slider which user Var_Zoom variable.

I can see Var_Zoom in my expressions and min/max axis but yours are exactly the same as mine but you are using a different variable in your slider.

Am i missing something?

jpenuliar
Partner - Specialist III
Partner - Specialist III

have a look at Table Viewer (Ctrl+T),

see what field name you have for zoom table, for my attached file,

i have a table = %Zoom_Level

and a field = %Zoom_Level,

you should have a table for zoom, as if you dig in to the script, there is a bit of formula to computer map variables.

in your script, dont you have a pice of code like below:

Load RecNo( ) as %zoom_level autogenerate(max_zoom_level);

this is what generated the zoom values

jpenuliar
Partner - Specialist III
Partner - Specialist III

yep i can see that and i have done the same. but i cant see either vZoomValue or %Zoom_Level in the chart itself.

at Script level, there is a variable var_zoom,  which is a formula which will make use of another variable %zoom_level,

%zoom _level is the one you want to fiddle with so var_zoom can make the computations.

jpenuliar
Partner - Specialist III
Partner - Specialist III

have a go at step by step guide, I believe it explains a bit of which code you can modify and which one r not.

Not applicable

Hi

Could you please help me on this

plot the dots (symbols) at different location