ZoomLevel for Google Maps

29 views
Skip to first unread message

Dustin Steinack

unread,
Jul 1, 2013, 11:50:56 AM7/1/13
to sgvi...@googlegroups.com
Hey,

I'm using sgvizler within a university project to visualize geographical
points on a map. My sparql query returns the coordinates of one or more
points. If there is just one point or the distance between the points is very
small the map (gMap/ sMap) uses the highest possible zoom level.

Is there any possibility to set the zoomLevel [1] manually?

I have already tried:
sgvizler.option.chart = { 'gMap': { 'zoomLevel': 1 };

and within the div:
data-sgvizler-chart-options=\"zoomlevel=1\"
But without success.

Any suggestions?

Greeting

[1]
https://developers.google.com/chart/interactive/docs/gallery/map?hl=de#Configuration_Options

"Martin G. Skjæveland"

unread,
Jul 1, 2013, 2:44:12 PM7/1/13
to sgvi...@googlegroups.com
On 01. juli 2013 17:50, Dustin Steinack wrote:
> Hey,
>
> I'm using sgvizler within a university project to visualize geographical
> points on a map. My sparql query returns the coordinates of one or more
> points. If there is just one point or the distance between the points is very
> small the map (gMap/ sMap) uses the highest possible zoom level.
>
> Is there any possibility to set the zoomLevel [1] manually?
>
> I have already tried:
> sgvizler.option.chart = { 'gMap': { 'zoomLevel': 1 };

You're missing a second } here.

> and within the div:
> data-sgvizler-chart-options=\"zoomlevel=1\"

No need to escape ".

> But without success.
>
> Any suggestions?

Apart from the minor details mentioned above, I could not make it work
either this way - which is the correct one - either. I get the error
message "Invalid value for property <zoom>: 1" from Google's javascript
or the zoom value does not work.

However, I also tried setting a zoom value for the example at

https://developers.google.com/chart/interactive/docs/gallery/map

and that does not work either, so I guess the problem is Google's and
not mine.

Please let me know if you solve the problem.

Thanks!
Martin
Reply all
Reply to author
Forward
0 new messages