jvectormap OnClick focus on Europe
Asked Answered
C

1

3

I cannot seem to find any support forums for his plugin...

I have a button which I want to focus on Europe when clicked.

I can focus on regions for example, at the moment I have

          $('#map1').vectorMap('set', 'focus', 'GB');

How do I change this to focus on europe?

Crossopterygian answered 4/10, 2012 at 17:7 Comment(0)
W
3

If you use standard map with miller projection it would be:

$('#map1').vectorMap('set', 'focus', 4.3, 0.5, 0.3);

where 4.3 is a scale, 0.5 horizontal coordinate and 0.3 is a vertical coordinate. You can adjust this values to get the desired result.

Wallenstein answered 7/10, 2012 at 11:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.