Bring back all columns of row on regionClick event

12 views
Skip to first unread message

andy wilson

unread,
Dec 18, 2018, 7:29:02 AM12/18/18
to Google Visualization API
At the moment the regionClick event only brings back the region in my version im using the sub region codes,

but what I am doing is making it so that when you click a region you will zoom into that region and it switches to country mode rather than sub region allowing the user to click on the countries,

My issue is that I am able to zoom into countries that have no data behind them is there a way i can stop the zoom into the country if the data i have in my array is a specific value e.g. 

[
    ['Region Code', 'Sub-Continent', 'Deals', {role: 'tooltip', p:{html:true}}],
    ['015', 'Africa', 100, 'Zoom to region'], // will zoom
    ['029', 'Caribbean', 0, 'Zoom to region'], // wont zoom
]

or even if i had this as my object 

[
    ['Region Code', 'Sub-Continent', 'Deals', {role: 'tooltip', p:{html:true}}],
    ['015', 'Africa', 100, 'Zoom to region'], // will zoom
]

if someone was to click the "029" sub region in both examples they will zoom how do i stop the user from being able to zoom into the "029" sub region.

as i think this is an acceptable thing to ask for, the user will get nothing in terms of extra data from looking down at the "029" sub region but they would if they did the africa one.

everything renders fine and as expected when switching as the map is just redrawn.

Thanks Andy
Reply all
Reply to author
Forward
0 new messages