GeoMap region codes

406 views
Skip to first unread message

cavady

unread,
Feb 19, 2012, 11:50:11 AM2/19/12
to Google Visualization API
Hello fellows.

I've encountered a problem while working with Geomap.

Is there a possibility to display a province of country instead of
"whole" country and mark cities there?



ChartMan

unread,
Feb 19, 2012, 1:32:16 PM2/19/12
to google-visua...@googlegroups.com

Example please ...

--
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.

cavady

unread,
Feb 19, 2012, 4:14:44 PM2/19/12
to Google Visualization API
function drawVisualization() {
var data = new google.visualization.DataTable();
data.addRows(11);
data.addColumn('string', 'Country');
data.addColumn('number', 'Miasta');


data.setValue(0, 0, 'Myslenice');
data.setValue(0, 1, 100);

data.setValue(1, 0, 'Pcim');
data.setValue(1, 1, 100);

data.setValue(2, 0, 'Sulkowice');
data.setValue(2, 1, 100);

data.setValue(3, 0, 'Dobczyce');
data.setValue(3, 1, 100);

data.setValue(4, 0, 'Lubien');
data.setValue(4, 1, 100);

data.setValue(5, 0, 'Raciechowice');
data.setValue(5, 1, 100);

data.setValue(6, 0, 'Siepraw');
data.setValue(6, 1, 100);

data.setValue(7, 0, 'Tokarnia');
data.setValue(7, 1, 100);

data.setValue(8, 0, 'Wisniowa');
data.setValue(8, 1, 100);

data.setValue(9, 0, 'Debniki, Krakow');
data.setValue(9, 1, 100);

data.setValue(10, 0, 'Ruczaj, Krakow');
data.setValue(10, 1, 100);


var options = {};
options['dataMode'] = 'markers';
options['region'] = 'PL';
options['showLegend'] = false;
options['colors'] = [0x00bbdd, 0x00bbdd, 0x00bbdd];

var geomap = new google.visualization.GeoMap(
document.getElementById('visualization'));
geomap.draw(data, options);
}


demo here : http://savedbythegoog.appspot.com/?id=7edfa7112b09d07d8f5981d5a351fda359763a13
As we can see markers overlaping, thats why I am asking whether is
possible to get more detailed map... I mean for province not for whole
country.



On 19 Lut, 19:32, ChartMan <chart...@google.com> wrote:
> Example please ...

EZChart

unread,
Feb 20, 2012, 4:51:10 AM2/20/12
to google-visua...@googlegroups.com
There's no map that is more detailed.
However, if you switch to GeoChart (instead of GeoMap), you have an additional feature of a magnifying glass.
When you hover over a group of cluttered markers, a magnifying glass opens and zooms on the markers.

Some notes:
- The magnifying glass feature is not released yet. It is available in our release candidate (1.1), and is planned to be released later this week.
- The magnifying glass works on Chrome, FireFox and IE9, but will NOT open on IE8.
- You can modify the zoom factor of the magnifying glass using the magnifyingGlass.zoomFactor option.


Hope this helps,
EZChart

cavady

unread,
Feb 20, 2012, 6:12:11 AM2/20/12
to Google Visualization API
Thank you EZChart for a response.
GeoChart should fit my needs, thanks for fully described feature.

Cavady.

On 20 Lut, 10:51, EZChart <ezch...@google.com> wrote:
> There's no map that is more detailed.
> However, if you switch to GeoChart (instead of GeoMap), you have an
> additional feature of a magnifying glass.
> When you hover over a group of cluttered markers, a magnifying glass opens
> and zooms on the markers.
>
> Some notes:
> - The magnifying glass feature is not released yet. It is available in our
> release candidate (1.1), and is planned to be released later this week.
> - The magnifying glass works on Chrome, FireFox and IE9, but will NOT open
> on IE8.
> - You can modify the zoom factor of the magnifying glass using the
> magnifyingGlass.zoomFactor option.
>
> See example using our release candidate:http://savedbythegoog.appspot.com/?id=3cc79b624e068dd106a6a59a826d2a7...
> >http://savedbythegoog.appspot.com/?id=7edfa7112b09d07d8f5981d5a351fda...

cavady

unread,
Feb 20, 2012, 6:16:43 AM2/20/12
to Google Visualization API
Could not find a way to edit post , so I am writing again.

Will be there an option to edit size of ellipse ?

EZChart

unread,
Feb 20, 2012, 7:01:34 AM2/20/12
to google-visua...@googlegroups.com
No, the diameter of the magnifying glass cannot be changed. It is automatically calculated to be 40% of the height of the map.
Reply all
Reply to author
Forward
0 new messages