Russian Federation, Greenland country not coming in Google world maps

58 views
Skip to first unread message

Akash Jain

unread,
Mar 21, 2016, 10:28:51 AM3/21/16
to Google Visualization API
Hi Team,

I was trying to implement Google world maps but observed that the https://www.gstatic.com/charts/loader.js file does not have details for 'Russian Federation', 'Greenland' etc. There may be few more. But as of now I found only these two.
Since this is not present in the file, data points for these countries are not coming up in the world map.


Any help would be appreciated.

Regards,
Akash


Sergey Grabkovsky

unread,
Mar 22, 2016, 9:46:15 AM3/22/16
to Google Visualization API
Hi Akash,

We identify the "Russian Federation" as "Russia". "Russian Federation" should still work, however, if you loaded `https://www.google.com/jsapi` in order to enable geocoding.

Here is a jsfiddle where I use both "Greenland" and "Russian Federation" on a world map: http://jsfiddle.net/3ghuk4xk/
Here is a jsfiddle where I didn't include the `/jsapi` endpoint (so geocoding is disabled, and "Russian Federation" won't work properly: http://jsfiddle.net/Lyuzsn4r/
However, "Russia" works just fine: http://jsfiddle.net/bwm7452c/

To see the loaded scripts (the gstatic loader and the jsapi endpoint), click on "External Resources" on the left bar.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/86afe77b-d117-4981-b187-b83ce3b9f988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


Akash Jain

unread,
Mar 22, 2016, 10:49:42 AM3/22/16
to Google Visualization API
Thanks for the reply Sergey.

We are also using the following code but somehow it does not show Russian Federation. We tried converting to InitCaps, AllCaps, All Small etc. 

  <script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

  data.addColumn('string', 'Country');
      data.addColumn('number', '#Revenue');
      var myGeoArray=[];

myGeoArray.push(["@1",@2]);

On Tuesday, 22 March 2016 09:46:15 UTC-4, Sergey wrote:
Hi Akash,

We identify the "Russian Federation" as "Russia". "Russian Federation" should still work, however, if you loaded `https://www.google.com/jsapi` in order to enable geocoding.

Here is a jsfiddle where I use both "Greenland" and "Russian Federation" on a world map: http://jsfiddle.net/3ghuk4xk/
Here is a jsfiddle where I didn't include the `/jsapi` endpoint (so geocoding is disabled, and "Russian Federation" won't work properly: http://jsfiddle.net/Lyuzsn4r/
However, "Russia" works just fine: http://jsfiddle.net/bwm7452c/

To see the loaded scripts (the gstatic loader and the jsapi endpoint), click on "External Resources" on the left bar.

On Mon, Mar 21, 2016 at 10:28 AM Akash Jain <akj...@gmail.com> wrote:
Hi Team,

I was trying to implement Google world maps but observed that the https://www.gstatic.com/charts/loader.js file does not have details for 'Russian Federation', 'Greenland' etc. There may be few more. But as of now I found only these two.
Since this is not present in the file, data points for these countries are not coming up in the world map.


Any help would be appreciated.

Regards,
Akash


--
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 google-visualization-api+unsub...@googlegroups.com.

Sergey Grabkovsky

unread,
Mar 22, 2016, 11:43:29 AM3/22/16
to Google Visualization API
Akash,

I will need more code than that if I am to help you figure this out. Could you either link to the website where you are experiencing this error, or distill the error into a jsfiddle? The code you gave doesn't appear to have any relevance to the issue you're experiencing.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.

Akash Jain

unread,
Mar 22, 2016, 11:52:08 AM3/22/16
to Google Visualization API
Hi,
I understand your concern. This is for our Oracle BI reporting tool wherein we want to use the data coming from the report to plot the world map.

This is the Prefix part of the code.

  <script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  <script type="text/javascript">
if(document.URL.indexOf("saw.dll?Answers") == -1) 
    google.load('visualization', '1', {packages: ['geomap']});

    function drawGeo() {
if(document.URL.indexOf("saw.dll?Answers") == -1) {
      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Country');
      data.addColumn('number', '#Revenue');
      var myGeoArray=[];

And then the Narrative part which actually pushes the data from report taking from 1st( Country Name) and 2nd column(Revenue).

myGeoArray.push(["@1",@2]);

And then the postfix.

 data.addRows(myGeoArray);
     var options = {};
      options['width'] = '600px';
      options['height'] = '400px';
      var geomap = new google.visualization.GeoMap(
          document.getElementById('div_Geo'));
      geomap.draw(data, options);
}
    }
    
if(document.URL.indexOf("saw.dll?Answers") == -1) 
    google.setOnLoadCallback(drawGeo);
  </script>
<div id="div_Geo" style="width: 900px; height: 600px;"></div>

So for all the other countries we are able to see the data in world map. But for Russian Federation it does not come up even thought we have revenue for that in the tabular report.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualization-api+unsub...@googlegroups.com.

Sergey Grabkovsky

unread,
Mar 22, 2016, 12:15:10 PM3/22/16
to Google Visualization API
The GeoMap is extremely deprecated and we strongly urge anyone using it to use the GeoChart instead. Please post back if you experience these issues with the GeoChart.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.

Akash Jain

unread,
Mar 22, 2016, 12:53:49 PM3/22/16
to Google Visualization API
Awesome.. Thank you so much. Really appreciate it. 
It works fine in GeoChart.
Does it need any license ? Or I can simply use the following URL

  <script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

Also, does it support drilldown also, like if I click on United States, it should take me to the next report which is just tabular report. And can we change the color and enable zoom ?

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualization-api+unsub...@googlegroups.com.

Sergey Grabkovsky

unread,
Mar 22, 2016, 1:14:56 PM3/22/16
to Google Visualization API
Akash,

We don't provide any utilities for doing drilldown for any of our charts. However, we do support enough events for you to hook this up yourself. There have been numerous people asking about this on this mailing list. You should be able to find a post pretty easily.

You can certainly change the color; please refer to the documentation page that I linked to.

It's unclear to me what you're referring to as "zoom". If you're looking for Google Maps-like behavior where the mouse wheel zooms in, then the GeoChart does not support this.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.

Akash Jain

unread,
Mar 22, 2016, 1:34:22 PM3/22/16
to Google Visualization API
ok got it.. I checked the documentation and that helped me to change the colors etc.

One last thing, I hope I can use it without license for my Prod env.?

Thank you so much.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualization-api+unsub...@googlegroups.com.

Sergey Grabkovsky

unread,
Mar 22, 2016, 1:51:06 PM3/22/16
to Google Visualization API
Yes, no license is required. Google Charts is free to use as long as you follow our Terms of Service.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages