So I have a geoJSON saved in a variable or parsed as an object:
// geoJSON as object var segment = segment; // geoJSON as JSON string var json = JSON.stringify(segment);
How am I able to display this on a google map? It's valid and the JSON string stored in
json is visible when I paste it into a validator like http://geojsonlint.com/ .
Sadly, this doesn't work:
And I can't find any other documentation about google maps that tells me how I could import geoJSON data directly without a file.