jvectormap icon indicating copy to clipboard operation
jvectormap copied to clipboard

MultiMap: pass config object to child maps

Open TehShrike opened this issue 9 years ago • 6 comments

Allowing you to pass, among other things, a data series to child maps.

TehShrike avatar Jan 12 '16 20:01 TehShrike

Resolves #311

TehShrike avatar Jan 12 '16 20:01 TehShrike

Why this isn't merged yet? Is there any other solution?

RockyRx avatar Jan 23 '17 10:01 RockyRx

@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 avatar Jan 23 '17 10:01 fab120

@fab120 thanks for the update.

RockyRx avatar Jan 23 '17 10:01 RockyRx

@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?

RockyRx avatar Jan 23 '17 10:01 RockyRx

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/

fab120 avatar Jan 23 '17 10:01 fab120