It would do the trick:
var map = $("#test").gmap3("get");
Вопрос
I am trying to integrate gmap3 JS plugin
with the gpxviewer module
https://github.com/peplin/gpxviewer
The gpxviewer documentation uses
var map = new google.maps.Map(document.getElementById("map"),
mapOptions);
loadGPXFileIntoGoogleMap(map, "pocotrail.xml");
for creating the map however gmap3 uses the following code generating the map
$("#test").gmap3();
So how do I get the real map object from gmap3 for passing it to loadGPXFileIntoGoogleMap() ?
Решение
It would do the trick:
var map = $("#test").gmap3("get");