google maps API - "toGeoJson" returns object with geometry null
<p>I'am using the google maps Drawing Layer (Library) to draw shapes on my map.</p>

<p>Once finished drawing all the shapes I call "toGeoJson" function from the google maps api.</p>

<p>The object i receive look like this:</p>

<p><a href="http://i.stack.imgur.com/aY5UE.png" rel="nofollow">object received when calling "toGeoJSON"</a></p>

<p>I can't figure out what I'am doing wrong.</p>

<p>I am just trying to create a GeoJson out of the shapes drawn on the map.</p>

<p>I am not pasting any code because the drawing part is all done by the drawing library and the "toGeoJson" function is done by the google maps API.</p>