Loading a geoJSON object directly into google maps v3
Use the addGeoJson
method of data
instead of loadGeoJson
. loadGeoJson
expects an URL as parameter, not a GeoJSON featurecollection object.
map.data.addGeoJson(tempObject);
Check the reference: https://developers.google.com/maps/documentation/javascript/reference#Data