I\'m using GeoJSON as a data source for Google Maps. I\'m using v3 of the API to create a data layer as follows:
Use a styling-function(styling-functions enable you to apply styles based on a specific feature)
map.data.setStyle(function(feature) { return {icon:feature.getProperty('icon')}; });