Hello,
I was trying to separate the Searchbox for Species search and make it independent of an instance.
How can one cleanly separate out the search box to point to a 'default' instance and fetch its species?
(Because most of the species are shared by each instance anyway and I think we could do some schema mapping for this quite easily.)
Btw grunt merges all the js files into treemap.js (~62,200 lines) 4.7MB without minification (in dev mode) and there wasn't too much documentation!
In treeMap.js Search.init() uses the config object.
I checked up the database and the instance config was not contained in any of the Instance objects generated.
Where is this config being generated? Do we take it only by parsing the incoming url? If so, can I simply pass on a
var config = { instance:{url:'my-url'}}
to initDefaults(config) for loading the species suggestions?
Sorry if my question is a little silly, just that I'm not too familiar with Bacon.js and Grunt.js semantics.
Much thanks!
--
Regards,
Johnson Chetty