Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
shashankrawat93
Contributor
Contributor

How to set default zoom level in GeoAnalytics map in Qlikview

Hi,

I am using  GeoAnalytics map for data representation.

Now, if i use the navigation button in the map then my map gets zoomed in, which works perfectly fine.

I am showing the data for U.S.A  

I want when the user logins the map should open to the lower 48 sates and not show Alaska in it on the by default view.

If the user wants to see Alaska he can zoom out and view the data.

But for the by default view Alaska should not be there and the map should be set to default lower 48 states.

Is this functionality possible in Qlik Geo Analytics map?

Can anybody please help on what I need to do to get the same.

Thanks in advance.Remove Alaska from the by default view in Qlik Geo Analytics mapRemove Alaska from the by default view in Qlik Geo Analytics map

Shashank

Labels (4)
10 Replies
Patric_Nordstrom
Employee
Employee

Sure, make another layer and exclude Alaska with set analysis. For example mainland US, location field:
=only({<state-={'AK','HI'}>} state), use that for autozoom and make it transparent. Change your existing layer to no to auto zoom.

Example see sheet "Map insets"

https://community.qlik.com/t5/Member-Articles/Top-10-QGA-tricks-Qonnections-2019/ta-p/1581145

Thanks,

Patric

darosme
Contributor II
Contributor II

Hi,

It's working fine I guess for the same level of data, State in your example. But what about a lower layer? We want a default zoom in Europe; the autozoom is showing the rest of the world because there are some French regions in south America. I followed the previous steps but the layer is Region instead of Country.

Would it be possible to keep the zoom in Europe but showing only Countries? Spain in my example instead of Madrid Region.

Thanks a lot in advance.

joostvanegmond7
Partner - Creator
Partner - Creator

Hi Darosme, 

You could try to set your desired zoom view using the "Set default view" option. 

joostvanegmond7_0-1727435180864.png

Let me know if that helps. 

Joost

 

darosme
Contributor II
Contributor II

Dear Joost,

Thanks for your answer, but then you lose the "autozoom" functionality and we want to keep it.

Any other idea?

Thanks.

joostvanegmond7
Partner - Creator
Partner - Creator

You'll should try to add a 'Dummy' layer, with the following Coordinate. It is the coordinate of Europe with low resolution.

Make the layer fully transparant. 

 

'[[[[180.0,68.781559],[178.85714299999998,68.781559],[180.0,69.904949],[180.0,68.781559]]],[[[16.571429,37.326637],[15.428571,36.203247],[15.428571,37.326637],[13.142857142857139,39.57341714285715],[8.857142857142833,37.60748449579833],[8.285714285714278,40.41595970588236],[4.0,40.69680722689077],[-0.571429,35.079857],[-6.285714,33.956466999999996],[-8.285714285714306,35.3607043277311],[-9.714285714285722,40.69680722689077],[-2.857142857142861,45.19036756302522],[-6.571428571428584,49.40308037815127],[-10.571428571428584,50.52647046218489],[-6.0,56.143420882352956],[-3.142857142857139,57.26681096638657],[2.857142857142833,50.807317983193286],[7.428571428571416,54.177488235294135],[5.142857142857139,57.54765848739497],[5.428571428571416,60.636981218487406],[15.714285714285694,67.37732172268909],[28.857142857142833,69.62410189075632],[40.85714285714283,65.69223659663866],[50.571428571428555,66.81562668067228],[55.714285714285694,72.99427214285714],[60.0,73.27512],[56.85714285714283,67.9390167647059],[63.428571428571416,67.65816924369749],[69.14285714285714,71.02833949579833],[80.57142857142856,71.02833949579833],[96.57142857142856,75.52189983193279],[108.0,75.52189983193279],[116.0,72.15172957983194],[126.28571428571428,72.15172957983194],[130.85714285714283,69.90494941176472],[144.57142857142856,72.15172957983194],[150.28571428571428,69.90494941176472],[180.0,67.658169],[180.0,63.164609],[174.0,58.95189609243698],[165.4285714285714,58.390201050420174],[158.28571428571428,49.68392789915967],[155.1428571428571,52.2115555882353],[156.85714285714283,57.26681096638657],[141.4285714285714,56.143420882352956],[139.1428571428571,53.334945672268915],[143.1428571428571,52.77325063025211],[144.28571428571428,47.71799525210085],[139.1428571428571,46.032910126050425],[134.0,40.977654747899166],[130.857143,40.696807],[132.85714285714283,46.032910126050425],[127.71428571428572,47.71799525210085],[124.0,51.9307080672269],[120.85714285714283,51.649860546218505],[118.0,47.71799525210085],[109.14285714285711,47.43714773109245],[98.85714285714283,49.68392789915967],[86.28571428571428,47.43714773109245],[76.85714285714283,52.77325063025211],[65.7142857142857,53.05409815126052],[59.714285714285694,48.841385336134465],[50.85714285714283,49.68392789915967],[47.714285714285694,48.27969029411766],[49.714285999999994,44.066977],[47.428571,40.696807],[39.428571,41.820197],[31.428571428571416,42.943587394958],[29.142857,40.696807],[25.714285999999998,39.573417],[25.714285999999998,37.326637],[22.285714285714278,35.0798568067227],[16.571429,37.326637]],[[18.857143,54.177488],[22.285714285714278,56.42426840336135],[20.0,59.7944386554622],[18.857143,54.177488]]],[[[-17.714285999999998,60.917829],[-14.571428571428584,62.32206634453783],[-14.571428571428584,64.00715147058824],[-24.285714285714306,64.00715147058824],[-17.714285999999998,60.917829]]],[[[-172.0,62.041219],[-171.14285714285714,65.13054155462186],[-176.85714285714286,67.37732172268909],[-180.0,66.534779],[-180.0,63.164609],[-172.0,62.041219]]],[[[-180.0,68.781559],[-177.714286,68.781559],[-180.0,69.904949],[-180.0,68.781559]]]]'

darosme
Contributor II
Contributor II

Hi dear,

Thanks again for your quick answer 🙂 Unfortunately, even if we manage to improve the boundaries, we can't click on the country we want.. any other idea?

joostvanegmond7
Partner - Creator
Partner - Creator

Hi!

Yes, you should order 'Europe' below your main layer:

joostvanegmond7_0-1727774438925.png

Also, you can disable selection in the 'Europe'-layer in the options section. 

 

darosme
Contributor II
Contributor II

Hi dear,

Thanks a lot again for your patience, but still, this is not working as desired; I don't see any difference and we are showing much more than Europe.

Any other idea?

BR

joostvanegmond7
Partner - Creator
Partner - Creator

Is it possible to share your App? I could look into it then.