Custom InfoWindow in Map

180 views
Skip to first unread message

Tomáš Pošepný

unread,
Jul 24, 2011, 8:51:25 AM7/24/11
to google-visua...@googlegroups.com
Hi, 

is there any way how to set custom text in infoWindow, when a marker on a Map is clicked ? I know, this is possible when using google maps api, but is it possible also when using google visualization map ?

Thank you,
TP

--
Please consider the environment before printing

ChartALot

unread,
Jul 25, 2011, 6:21:10 AM7/25/11
to google-visua...@googlegroups.com
Hi,
Currently, you can control only the title of the tooltip, by setting the formatted value of the cell which holds the region name.
Here is an example:
   function drawVisualization() {
      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Region');
      data.addColumn('number', 'Popularity');
      data.addRow(['BR-SP', 300]);
      data.setFormattedValue(0, 0, 'São Paulo');
      
      var geochart = new google.visualization.GeoChart(
          document.getElementById('visualization'));
      geochart.draw(data, {width: 556, height: 347, region: 'BR', resolution: 'provinces'});
    }
 
We hope to support controlling the content of the tooltip in the future.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Tomáš Pošepný

unread,
Jul 25, 2011, 7:04:00 AM7/25/11
to google-visua...@googlegroups.com
Well, I wasn't talking about geoChart, but about the Map which I am creating like:

var map = new google.visualization.Map(document.getElementById("map_canvas"));
map.draw(map_data, map_options);

where map_data is DataTable with Latitude and Longitude.

Thanks

asgallant

unread,
Jul 26, 2011, 1:32:12 PM7/26/11
to google-visua...@googlegroups.com
You want the maps forum: http://code.google.com/apis/maps/forum/

Tomáš Pošepný

unread,
Jul 26, 2011, 1:36:36 PM7/26/11
to google-visua...@googlegroups.com
Are you sure? I am asking about google.visualization.Map:

On Tue, Jul 26, 2011 at 7:32 PM, asgallant <drew_g...@abtassoc.com> wrote:
You want the maps forum: http://code.google.com/apis/maps/forum/

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

asgallant

unread,
Jul 26, 2011, 1:54:55 PM7/26/11
to google-visua...@googlegroups.com
My mistake...I didn't know the maps API had been tied into the viz API.  Is there any particular reason to use the viz version over the maps version?  Skimming over things it looks the viz version loses much in the way of functionality and doesn't bring many, if any, improvements.

Tomáš Pošepný

unread,
Jul 26, 2011, 2:15:35 PM7/26/11
to google-visua...@googlegroups.com
Well, I chose viz API because there is this example of how Table and Map are easily connected and I don't know how to do with maps API

On Tue, Jul 26, 2011 at 7:54 PM, asgallant <drew_g...@abtassoc.com> wrote:
My mistake...I didn't know the maps API had been tied into the viz API.  Is there any particular reason to use the viz version over the maps version?  Skimming over things it looks the viz version loses much in the way of functionality and doesn't bring many, if any, improvements.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

asgallant

unread,
Jul 26, 2011, 4:01:12 PM7/26/11
to google-visua...@googlegroups.com
Ahh...yeah, that would do it.  I hadn't thought about the possibilities of tying the data sources together.

waqar ahmed

unread,
Jan 10, 2014, 5:55:24 AM1/10/14
to google-visua...@googlegroups.com
Hi,

I'm using GeoChart and want to have marker on color fill resolution, is that possible. as i've experienced that one option work at a time. Please let me know soon.

Regards.

asgallant

unread,
Jan 10, 2014, 10:49:46 AM1/10/14
to google-visua...@googlegroups.com
I'm sorry, but I don't understand your question.  Could you clarify your question with an example of what you want?
Reply all
Reply to author
Forward
0 new messages