Skip to main content
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
jpenuliar
Partner - Specialist III
Partner - Specialist III

if you're using a zoom table linked to a slider object, i use SORT property NUmeric ASC/DESC

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi Jonathan,

I am using a variable for the Zoom, I can't change anything on the sort tab

jpenuliar
Partner - Specialist III
Partner - Specialist III

i see, from the google map guide there is already a zoom table generator, personally i load inline the zoom table with values i needed.

I haven't really thought of using variable for zoom, but i have a feeling it is also in the SORT prop, will try that today.

btw, this is my 500th point. yahooo!

jpenuliar
Partner - Specialist III
Partner - Specialist III

i think i manage to crack it mate,

for min/max, i used -3/-12 respectively,

slider saves value to variable (vZoomValue)

afterwards, i used FABS() on zoom to make the negative go Positive

jpenuliar
Partner - Specialist III
Partner - Specialist III

FABS(vZoomValue)

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

congrats on your 500th point!

any chance you have an example?

jpenuliar
Partner - Specialist III
Partner - Specialist III

attached a sample Mapquest (not google, but should be the same).

Ive added the slider objects, linked to variable,

there is a trigger for "vZoomValue" "OnChange" to "Select in Field" "%zoomlevel"

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi Jonathan,

Sorry, its probably me being stupid, but i can't see how your slider interacts with the map. the slider uses the VZoom_Value  but how does the map know to respond to that variable?

jpenuliar
Partner - Specialist III
Partner - Specialist III

if you got to Documenty Properties (ctrl+alt+D)>>Triggers tab.

on Variable Event Triggers>> vZoomValue

i added an OnChange Trigger to "Select in Field"