简体   繁体   中英

Integration gmap3 JS plugin with gpxviewer/loadgpx module? How to get 'map' object from gmap3?

I am trying to integrate gmap3 JS plugin

http://gmap3.net/

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() ?

它将达到目的:

var map = $("#test").gmap3("get");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM