I'm using the Data Layers API to add geojson data to map.
But the problem is that the addGeoJson method returns a list of features, and I can't find an interface method to retrieve the marker obj reference associated with that feature.
I don't want to create a google Marker objects on the fly, add them to the map and remove the feature. It's an overkill.
I just want the proper approach before I move away from data layers and manage my own markers instead.
Thanks,
Seb.
I have this issue as well. I couldn't find much in the API doc. You need a Marker object and you don't have one, you've got Features because you uploaded them to the data layer.
However, in the InfoWindow documentation , it says you can create an MVCObject with position set. I did this below in the event handler. You don't have to put it on the map, just handle the click event by creating the MVCObject and submitting that to the infoWindow constructor.
Example: