Size of Intensity map

28 views
Skip to first unread message

zupca

unread,
Oct 27, 2009, 2:41:16 PM10/27/09
to Google Visualization API
I am working on a project, where i need a map zoomed on whole Europe.
Because this isn't possible in Geomap i switched to Intensity map. But
max size is 220x440. Is there any way to show whole Europe in geomap
or to make Intensity map larger?
I would appreciate reply (even if it is "Sorry man - no chance")

VizWiz

unread,
Nov 1, 2009, 7:47:00 AM11/1/09
to google-visua...@googlegroups.com
Hi,

There is no whole-Europe map in geomap for now.

Cheers,
VizWiz

Thierry

unread,
Dec 4, 2009, 6:57:10 AM12/4/09
to Google Visualization API
Hi Zupca,

I had the same issue when I needed a Europe Geomap for www.2010shanghai.eu

Here is the workaround I used:
1. I draw a big map covering the whole world:
options['dataMode'] = 'regions';
options['region'] = 'world';
options['width'] = '1668px';
options['height'] = '1041px';
2. I embed the Geomap DIV inside another DIV:
<div id="map_crop">
<div id="map_canvas"></div>
</div>
3. I use the combination of the map_crop and map_canvas DIV to crop
the needed area using CSS:
#main div#map_crop {
position:relative;
float:left;
width:330px;
height:330px;
overflow:hidden;
border:1px solid #000;
}
#main div#map_canvas {
margin-left:-720px;
margin-top:-150px;
}

I know this solution is not perfect but it gives me a geomap of Europe
under most browsers. I still have some issues under Mac (Firefox) and
therefore disabled the geomap for Mac users.

Here is the reference page on which I have this Europe Geomap:
http://www.2010shanghai.eu/eupavilions.html

Regards,
Thierry
Reply all
Reply to author
Forward
0 new messages