I'm trying to use the google places api on the same page as an openlayers map using olgm to serve and embedded google map.
I need to have a handle to the google map in order to construct the places api PlacesService
:
var placesService = new google.maps.places.PlacesService(gmap);
However, olgm encapsulates the google map and I can't work out how to get a reference to it:
olgm.OLGoogleMaps = function(options) {
...
var gmap = new google.maps.Map(gmapEl, {
...
Any ideas?