|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
看到手机上有个搜狗地图,我想输入几个经纬度然后连成一条线,怎么都没什么反应
mainActivity.button2Click = function(event){
function initialize() {
var myLatLng = new sogou.maps.LatLng(39.988176,116.319404);
var myOptions = {
zoom: 15,
center: myLatLng,
mapTypeId: sogou.maps.MapTypeId.TERRAIN
};
var map = new sogou.maps.Map(document.getElementById("map_canvas"), myOptions);
var src = './slider/map.html?longitude=' + location[0] + '&latitude='+ location[1] + '&t='+new Date().getTime();
$('#locaitonFrame').attr('src',src);
$('#locationFrameWarpper').fadeIn();
var flightPlanCoordinates = [
new sogou.maps.LatLng(39.992792,116.326142),
new sogou.maps.Point(12949589,4835996),
new sogou.maps.LatLng(39.986017,116.31049)
];
var flightPath = new sogou.maps.Polyline(
flightPlanCoordinates,
{strokeColor: "red",
strokeOpacity: 1.0,
strokeWeight: 5
});
flightPath.setMap(map);
}
};
|
|