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