[英]Integration gmap3 JS plugin with gpxviewer/loadgpx module? How to get 'map' object from gmap3?
I am trying to integrate gmap3 JS plugin 我正在尝试集成gmap3 JS插件
http://gmap3.net/ http://gmap3.net/
with the gpxviewer module 使用gpxviewer模块
https://github.com/peplin/gpxviewer https://github.com/peplin/gpxviewer
The gpxviewer documentation uses gpxviewer文档使用
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 用于创建地图,但是gmap3使用以下代码生成地图
$("#test").gmap3();
So how do I get the real map object from gmap3 for passing it to loadGPXFileIntoGoogleMap() ? 那么,如何从gmap3获取真实的地图对象以将其传递给loadGPXFileIntoGoogleMap()?
它将达到目的:
var map = $("#test").gmap3("get");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.