After some investigation, I figured out what your problem is. It's actually
two-fold.

   1. You're not waiting for your maplist to load, which introduces
   somewhat of a race condition. This is my fault, since I didn't tell you the
   proper way to do it and it's not documented. The trick is that
   GeoChart.setMapsSource takes a newSource as well as a readyCallback and an
   errorCallback, so you should only render your GeoChart after it loads (on
   the ready callback).
   2. I completely forgot about this one. It turns out that we do a binary
   search to figure out if the region you specified is valid, which obviously
   won't work with an unsorted list. Your provinces in your mapList.js file
   are listed as '"US", "CA", "US-AK", "US-AL", "US-AR", "US-AZ", "US-CA",
   "US-CO", "US-CT", "US-DE", "US-FL", "US-GA", "US-HI", "US-IA", "US-ID",
   "US-IL", "US-IN", "US-KS", "US-KY", "US-LA", "US-MA", "US-MD", "US-ME",
   "US-MI", "US-MN", "US-MO", "US-MS", "US-MT", "US-NC", "US-ND", "US-NE",
   "US-NH", "US-NJ", "US-NM", "US-NV", "US-NY", "US-OH", "US-OK", "US-OR",
   "US-PA", "US-RI", "US-SC", "US-SD", "US-TN", "US-TX", "US-UT", "US-VA",
   "US-VT", "US-WA", "US-WI", "US-WV", "US-WY", "US-ZZ", "CA-AB", "CA-BC",
   "CA-MB", "CA-NL", "CA-NS", "CA-NT", "CA-NU", "CA-ON", "CA-PE", "CA-QC",
   "CA-SK", "CA-YT"', and since the C's are after the U's and the U's take
   up more than half of the list, it'll never find any of the C's. Sorting
   that list should solve that problem.


- Sergey


On Tue, Jul 30, 2013 at 10:00 AM, Bluestreak2k5 <[email protected]>wrote:

> Well in the obfuscated code you have a variable called:
>  var Ap = {
>             COM: {
>
> and under that you have definitions for COUNTRIES, REGIONS, PROVINCES etc.
>
>                 PROVINCES: ["AD", "AE", "AF", "AG", "AL", "AM", "AO",
> "AR", Od, "AU", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ",
> "BN", "BO", "BQ", "BR", "BS", "BT", "BW", "BY", "BZ",
>                     *"CA", "CA-AB", "CA-BC", "CA-MB", "CA-NL", "CA-NS",
> "CA-NT", "CA-NU", "CA-ON", "CA-PE", "CA-QC", "CA-SK", "CA-YT",*
>                     "CD", "CF", "CG", "CH", "CI", "CL", "CM", "CN", "CO",
> "CR", "CU", "CV", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC",
> "EE", "EG", "EH", "ER", "ES", "ET",
>                     "FI", "FJ", "FM", "FR", "GA", "GB", "GD", "GE", "GH",
> "GL", "GM", "GN", "GQ", "GR", "GT", "GW", "GY", "HN", "HR", "HT", "HU",
> "ID", "IE", "IL", "IN", "IQ", "IR", "IS", "IT", "JM", "JO", "JP", "KE",
> "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KZ", "LA", "LB", "LC",
> "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MD", "ME", "MG",
> "MH", "MK", "ML", "MM", "MN", "MR", "MU", "MV", "MW", "MX", "MY", "MZ",
> "NA", "NE", "NG", "NI", "NL", "NO", "NP", "NR", "NZ", "OM", "PA", "PE",
> "PG", "PH", "PK", "PL", "PT", "PW", "PY", "QA", "RO", "RS", "RU", "RW",
> "SA", "SB", "SC", "SD", "SE", "SH", "SI", "SK",
>                     "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SY",
> "SZ", "TD", "TG", "TH", "TJ", qe, "TM", "TN", "TO", re, "TT", "TV", "TZ",
> "UA", "UG", ve, "US-AK", "US-AL", "US-AR", "US-AZ", "US-CA", "US-CO",
> "US-CT", "US-DC", "US-DE", "US-FL", "US-GA", "US-HI", "US-IA", "US-ID",
> "US-IL", "US-IN", "US-KS", "US-KY", "US-LA", "US-MA", "US-MD", "US-ME",
> "US-MI", "US-MN", "US-MO", "US-MS", "US-MT", "US-NC", "US-ND", "US-NE",
> "US-NH", "US-NJ", "US-NM", "US-NV", "US-NY", "US-OH", "US-OK", "US-OR",
> "US-PA", "US-RI", "US-SC", "US-SD", "US-TN", "US-TX", "US-UT", "US-VA",
> "US-VT", "US-WA",
>                     "US-WI", "US-WV", "US-WY", "UY", "UZ", "VC", "VE",
> "VN", "VU", "YE", "ZA", "ZM", "ZW"
>                 ],
>
> If you try to use a province named CA-BC or any other name that isn't in
> the list, the map returns "Requested Map does not exist", you can test this
> by pointing your map source to:
> http://chrisdblumberg.com/maps_uncompressed/
> which has all of these map files, but none of them will load.
>
> Once you add in the Province names as bolded above, it works.
>
> I believe your error is somewhere in these lines, which is the 4th and 5th
> functions below the Variable declared above:
>
>         function Mp(a) {
>             Dp != m || (Dp = {
>                 continents: je,
>                 subcontinents: ne,
>                 countries: Rd,
>                 provinces: ie,
>                 metros: fe
>             });
>             return Dp[a]
>         }
>         var Ip = Ap;
>
>         function Np(a) {
>             var b = a[Kb],
>                 c = a[Hb];
>             a = Mp(a.Q);
>             if (b = Ip[b])
>                 if (b = b[a]) return 0 <= el(b, gl, p, c);
>             return p
>         }
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to