I have obtained a geoJSON dataset from a publicly available dataset here which I have saved here.
When I loaded this data into the Google Maps Data Layer from a file on my system:
var goldCoastData = new google.maps.Data({
map: map,
style: {
icon: 'images/marker_gc.png',
strokeColour: '#0b2430',
strokeOpacity: 1,
fillColor: '#ff534f',
fillOpacity: 1
}
});
$.ajax({
type: 'GET',
url: 'scripts/datasets/goldCoast_buildings.json',
dataType: 'json'
}).done(function (data) {
console.log(JSON.stringify(data));
goldCoastData.addGeoJson(data);
});
The data is not displayed on the map.I ran the following checks on the data:
- jsonlint(successfull)
- geojsonhint(successful)
geojsonlint
inconclusive/failure???- drag and drop failure