jvectormap
jvectormap copied to clipboard
MultiMap: pass config object to child maps
Allowing you to pass, among other things, a data series to child maps.
Resolves #311
Why this isn't merged yet? Is there any other solution?
@RockyRx Look at the code.. This project is not under active development right now and the last commit is 2 years old. So if you want modify the source, you must do it by yourself by forking this project. If this is the only patch that you need, you can use this version on my repo: https://github.com/Webnuvola/jvectormap It has this pr and an additional parameter 'backButtonText' for the multimap object.
@fab120 thanks for the update.
@fab120 I cloned your repo and build it via build.sh
and added subMapsOptions: { onRegionClick: function (event, code) { console.log(code); } },
But I do not see anything on my console. Did I do something wrong?
Where is the option 'subMapsOptions' in documentation?
This pr clone the config of the multimap object to the submap. Nothing more. https://github.com/bjornd/jvectormap/pull/362/files#diff-c635a4d3a687d84bab176e0f79d22175R106
The config is taken from the object that you pass as the main parameter http://jvectormap.com/documentation/javascript-api/jvm-multimap/