-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
World map #173
World map #173
Conversation
…ect Countries from the Result rather than using Country Codes
very cool we need this on my NSF Polar CyberInfrastructure work thanks @ankit-singhaniya ! |
ping, can someone take a look at this? It's preventing me from using Banana in my polar work for the NSF. |
thanks to my USC students for these contributions. |
Thanks @ankit-singhaniya for your contributions! I'm truly appreciated. @chrismattmann I'm sorry for the delay. I will work on merging these contributions into the develop branch first, so you can try it while waiting for the next Banana release. |
thanks @athana really appreciate it man! we really like Banana and the work you've all been doing is fantastic. Keep it up. I'll keep teaching it in my CS572 Search Engines graduate course at USC :) http://sunset.usc.edu/classes/cs572_2015/ |
@ankit-singhaniya @chrismattmann there's a bug in this PR. When I used the "Country Names" mode in the world map, and then I clicked on a country (for example, Canada) to add a filter. It does not work properly because the filter value will be the country code value (CA for Canada), instead of the full country name. I will have to fix this before I merge it to |
thanks @athana good catch. Do you need me/us to update, or do you got this one? |
@chrismattmann I got this one. thanks. |
@chrismattmann @ankit-singhaniya I fixed the bug and modified a few things. I separated the world maps into two maps: the original world map and the world-antarctica map. You guys can check it out in the |
awesome job @athana thank you so much! great job @ankit-singhaniya ! |
Thanks @athana for the quick fix, thanks @chrismattmann for following this On Mon, Aug 17, 2015 at 9:57 AM, Chris Mattmann notifications@github.com
|
Hi,
@chrismattmann
I am proposing the following two modifications (Feature Addition) to the existing Map Panel in Banana.
Adding Antarctica to the World Map.
Description: The jVectorMap of "world" in Banana does not have the Antarctic region. Reason might be that the jVectorMap of the world only plots countries. But Antarctica as an Continent can add value to the existing world map for Data Visualization in Banana.
Approach: Linearly scaled jVectorMap Coordinates for Antarctica (standards) to target map size.
Fig. 1: Original Map Panel
Fig. 2: Modified Panel With Antarctica Region
Adding Capability of Finding Country by Country Names
Description: The Map panel by default needs a solr field that has Country Codes (US, IN, etc) and thus this makes it **difficult to use* the panel on any other fields of indexed text.*
One problem in using it in normal text is that few codes are frequently found English text like "IN" meaning "inside" and not "India".
Solution: (Optional) choice to use Country Names than using Country Codes (default) for Finding Countries in the Solr Field.
Approach: Maps Country Names given the list of Countries on the World Map to corresponding Codes (that jVectorMap uses to plot).
Fig 1: Modified Panel Settings Page Showing Option to use Country Names for "World Map"
Fig. 2: Modified Panel Settings Page Hiding the Option of using Country Names for any other map than "World" Map
Fig. 3: Original Panel Settings Page